Index: runtime/observatory/lib/src/elements/vm_connect.dart |
diff --git a/runtime/observatory/lib/src/elements/vm_connect.dart b/runtime/observatory/lib/src/elements/vm_connect.dart |
index 31afe384a88e8a4eb4490de896308516574b077c..49282a5e75680b921620868e4c98e5028657aa1a 100644 |
--- a/runtime/observatory/lib/src/elements/vm_connect.dart |
+++ b/runtime/observatory/lib/src/elements/vm_connect.dart |
@@ -98,7 +98,8 @@ class VMConnectElement extends HtmlElement implements Renderable { |
..children = _targets.list().map((target) { |
final ObservatoryApplication app = |
ObservatoryApplication.app; |
- final bool current = app.isConnectedVMTarget(target); |
+ final bool current = (app != null) ? |
+ app.isConnectedVMTarget(target) : false; |
return new LIElement() |
..children = [ |
new VMConnectTargetElement(target, |