| 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()) {
|
|
|