Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1826)

Unified Diff: runtime/observatory/lib/src/elements/class_view.dart

Issue 2308003002: Fixed crash of Observatory class-view element (Closed)
Patch Set: Fixed crash of Observatory class-view element Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/class_view.dart
diff --git a/runtime/observatory/lib/src/elements/class_view.dart b/runtime/observatory/lib/src/elements/class_view.dart
index b16d68216562d47da384ca94441ff4485d6e0f04..362aa9a8c797dcc2fdf1d14494bb3671e6a50f54 100644
--- a/runtime/observatory/lib/src/elements/class_view.dart
+++ b/runtime/observatory/lib/src/elements/class_view.dart
@@ -419,10 +419,12 @@ class ClassViewElement extends HtmlElement implements Renderable {
queue: _r.queue)
],
new DivElement()..classes = ['memberValue']
- ..children = [
- anyRef(_isolate, f.staticValue, _instances,
- queue: _r.queue)
- ]
+ ..children = f.staticValue == null
+ ? const []
+ : [
+ anyRef(_isolate, f.staticValue, _instances,
+ queue: _r.queue)
+ ]
]
).toList())
]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698