Index: runtime/observatory/lib/src/elements/function_ref.dart |
diff --git a/runtime/observatory/lib/src/elements/function_ref.dart b/runtime/observatory/lib/src/elements/function_ref.dart |
index e5ace692a41729483caa6b5a5534500da6a62117..c769fde9d721aa462808e7a2922b0edf6cd41f97 100644 |
--- a/runtime/observatory/lib/src/elements/function_ref.dart |
+++ b/runtime/observatory/lib/src/elements/function_ref.dart |
@@ -36,7 +36,6 @@ class FunctionRefElement extends HtmlElement implements Renderable { |
factory FunctionRefElement(M.IsolateRef isolate, M.FunctionRef function, |
{bool qualified: true, RenderingQueue queue}) { |
- assert(isolate != null); |
assert(function != null); |
assert(qualified != null); |
FunctionRefElement e = document.createElement(tag.name); |
@@ -66,7 +65,7 @@ class FunctionRefElement extends HtmlElement implements Renderable { |
void render() { |
var content = <Element>[ |
new AnchorElement( |
- href: M.isSyntheticFunction(_function.kind) |
+ href: (M.isSyntheticFunction(_function.kind) || (_isolate == null)) |
? null |
: Uris.inspect(_isolate, object: _function)) |
..text = _function.name |
@@ -78,7 +77,7 @@ class FunctionRefElement extends HtmlElement implements Renderable { |
content.addAll([ |
new SpanElement()..text = '.', |
new AnchorElement( |
- href: M.isSyntheticFunction(function.kind) |
+ href: (M.isSyntheticFunction(function.kind) || (_isolate == null)) |
? null |
: Uris.inspect(_isolate, object: function)) |
..text = function.name |