Index: runtime/vm/message_handler.cc |
diff --git a/runtime/vm/message_handler.cc b/runtime/vm/message_handler.cc |
index eecd7983edecc6ef2f90ae62498bca68730a040e..bfb809419fafd94ea3d9e139a0285d1d915081ae 100644 |
--- a/runtime/vm/message_handler.cc |
+++ b/runtime/vm/message_handler.cc |
@@ -382,7 +382,7 @@ void MessageHandler::TaskCallback() { |
} |
} |
if (FLAG_trace_isolates) { |
- if (status != kOK && isolate() != NULL) { |
+ if (status != kOK && thread() != NULL) { |
const Error& error = Error::Handle(thread()->sticky_error()); |
OS::Print("[-] Stopping message handler (%s):\n" |
"\thandler: %s\n" |