Index: runtime/observatory/lib/src/elements/script_inset.dart |
diff --git a/runtime/observatory/lib/src/elements/script_inset.dart b/runtime/observatory/lib/src/elements/script_inset.dart |
index 3a2cb6c1a73573570c00130e262fb511fcc10034..791534fdfbd3e32b4221cc08ffe260251626827e 100644 |
--- a/runtime/observatory/lib/src/elements/script_inset.dart |
+++ b/runtime/observatory/lib/src/elements/script_inset.dart |
@@ -449,7 +449,7 @@ class ScriptInsetElement extends ObservatoryElement { |
addCurrentExecutionAnnotation(); |
- if (!inDebuggerContext) { |
+ if (!inDebuggerContext && script.library != null) { |
loadDeclarationsOfLibrary(script.library); |
// Add fields before functions so they beat out conflicting |