Index: runtime/vm/service_event.cc |
diff --git a/runtime/vm/service_event.cc b/runtime/vm/service_event.cc |
index edbb502f2cea91e959b93fff8fc13bb1dde493ac..d704091d5971e6b9ce25db2d8952a6c80a73bf46 100644 |
--- a/runtime/vm/service_event.cc |
+++ b/runtime/vm/service_event.cc |
@@ -166,7 +166,7 @@ void ServiceEvent::PrintJSON(JSONStream* js) const { |
if (exception() != NULL) { |
jsobj.AddProperty("exception", *(exception())); |
} |
- if (async_continuation() != NULL) { |
+ if (async_continuation() != NULL && !async_continuation()->IsNull()) { |
jsobj.AddProperty("_asyncContinuation", *(async_continuation())); |
} |
if (inspectee() != NULL) { |