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

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

Issue 2271083002: Converted Observatory icdata-view element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed layout & text Created 4 years, 4 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
Index: runtime/observatory/lib/src/elements/object_common.dart
diff --git a/runtime/observatory/lib/src/elements/object_common.dart b/runtime/observatory/lib/src/elements/object_common.dart
index 8a144763fd47e7144f753a2b57d99ab7bf87cfeb..6426032cf8869b0394dacb6aba118f8658bbf2b8 100644
--- a/runtime/observatory/lib/src/elements/object_common.dart
+++ b/runtime/observatory/lib/src/elements/object_common.dart
@@ -111,7 +111,7 @@ class ObjectCommonElement extends HtmlElement implements Renderable {
new DivElement()..classes = const ['memberName']
..text = 'Shallow size ',
new DivElement()..classes = const ['memberValue']
- ..text = Utils.formatSize(_object.size)
+ ..text = Utils.formatSize(_object.size ?? 0)
],
new DivElement()..classes = const ['memberItem']
..title = 'Space reachable from this object, '
« no previous file with comments | « runtime/observatory/lib/src/elements/icdata_view.html ('k') | runtime/observatory/lib/src/elements/service_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698