Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js |
index ff89a85b20e6070aeaf8ea0c07226141f2a7fb92..614b50997494af98739f689e5915f0946cbf70a6 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js |
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js |
@@ -551,7 +551,7 @@ Timeline.TimelineUIUtils = class { |
* @return {?string} |
*/ |
function linkifyLocationAsText(scriptId, lineNumber, columnNumber) { |
- var debuggerModel = SDK.DebuggerModel.fromTarget(target); |
+ var debuggerModel = target ? target.model(SDK.DebuggerModel) : null; |
if (!target || target.isDisposed() || !scriptId || !debuggerModel) |
return null; |
var rawLocation = debuggerModel.createRawLocationByScriptId(scriptId, lineNumber, columnNumber); |