Index: runtime/observatory/lib/src/elements/class_ref.dart |
diff --git a/runtime/observatory/lib/src/elements/class_ref.dart b/runtime/observatory/lib/src/elements/class_ref.dart |
index 1d0ae508ce9e675cfe84bf658841b9d9888a1a48..21bd6cce2f3798c4494584a9bfbca87c1f53c55f 100644 |
--- a/runtime/observatory/lib/src/elements/class_ref.dart |
+++ b/runtime/observatory/lib/src/elements/class_ref.dart |
@@ -24,6 +24,7 @@ class ClassRefElement extends HtmlElement implements Renderable { |
factory ClassRefElement(M.IsolateRef isolate, M.ClassRef cls, |
{RenderingQueue queue}) { |
+ assert(isolate != null); |
assert(cls != null); |
ClassRefElement e = document.createElement(tag.name); |
e._r = new RenderingScheduler(e, queue: queue); |
@@ -49,10 +50,8 @@ class ClassRefElement extends HtmlElement implements Renderable { |
void render() { |
children = [ |
- new AnchorElement( |
- href: (_isolate == null) |
- ? null |
- : Uris.inspect(_isolate, object: _class))..text = _class.name |
+ new AnchorElement(href: Uris.inspect(_isolate, object: _class)) |
+ ..text = _class.name |
]; |
} |
} |