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

Unified Diff: runtime/vm/object.cc

Issue 204983008: Rework how ServiceObjects are created and cached in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: edits Created 6 years, 9 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/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index d38bd21b6f23b75205137d40c152683f4f1a1294..5e8545a596d64d03e353a556f9c6a54958425426 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -3859,7 +3859,10 @@ void Class::PrintToJSONStream(JSONStream* stream, bool ref) const {
jsobj.AddProperty("patch", is_patch());
jsobj.AddProperty("finalized", is_finalized());
jsobj.AddProperty("const", is_const());
- jsobj.AddProperty("super", Class::Handle(SuperClass()));
+ const Class& superClass = Class::Handle(SuperClass());
+ if (!superClass.IsNull()) {
+ jsobj.AddProperty("super", superClass);
+ }
jsobj.AddProperty("library", Object::Handle(library()));
const Script& script = Script::Handle(this->script());
if (!script.IsNull()) {

Powered by Google App Engine
This is Rietveld 408576698