Index: runtime/vm/isolate.cc |
=================================================================== |
--- runtime/vm/isolate.cc (revision 778) |
+++ runtime/vm/isolate.cc (working copy) |
@@ -242,10 +242,11 @@ |
HandleScope handle_scope; |
PortMessage* message = message_queue()->Dequeue(0); |
- ASSERT(message != NULL); |
- Dart_HandleMessage( |
- message->dest_port(), message->reply_port(), message->data()); |
- delete message; |
+ if (message != NULL) { |
+ Dart_HandleMessage( |
+ message->dest_port(), message->reply_port(), message->data()); |
+ delete message; |
+ } |
} |
} |