Index: third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js b/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js |
index 83ef420c52685c2c481388f8a748a63eac9f0dcd..d058b2f3a2ad95ba5f73771f0c964c0caa693541 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js |
@@ -293,7 +293,9 @@ WebInspector.ObjectEventListenerBar.prototype = { |
{ |
var title = this.listItemElement.createChild("span"); |
var subtitle = this.listItemElement.createChild("span", "event-listener-tree-subtitle"); |
- subtitle.appendChild(linkifier.linkifyRawLocation(this._eventListener.location(), this._eventListener.sourceURL())); |
+ var link = linkifier.linkifyRawLocation(this._eventListener.location(), this._eventListener.sourceURL()); |
+ if (link) |
+ subtitle.appendChild(link); |
title.appendChild(WebInspector.ObjectPropertiesSection.createValueElement(object, false)); |