Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 9562941a55c1c60df280fc5fbc503b0682092fa2..f2fc08cb98d9e954d8ab90638c0d3d923818113e 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -5492,6 +5492,7 @@ DART_EXPORT Dart_Handle Dart_FinalizeLoading(bool complete_futures) { |
// the new code, the debugger convert them to unresolved source breakpoints. |
// The code that completes the futures (invoked below) may call into the |
// newly loaded code and trigger one of these breakpoints. |
+ ASSERT(isolate->debugger() != NULL); |
isolate->debugger()->NotifyDoneLoading(); |
// Notify mirrors that MirrorSystem.libraries needs to be recomputed. |