Index: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
index 049d8acafdcfbf1b0f06669ffd6b14a5571fbdc5..ab377c846aa777dec78ebf6877ad489f397e064b 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
@@ -110,7 +110,10 @@ WebInspector.CompilerScriptMapping.prototype = { |
var entry = sourceMap.findEntry(lineNumber, columnNumber); |
if (!entry || !entry.sourceURL) |
return null; |
- var uiSourceCode = this._networkMapping.uiSourceCodeForScriptURL(/** @type {string} */ (entry.sourceURL), rawLocation.script()); |
+ var script = rawLocation.script(); |
+ if (!script) |
+ return null; |
+ var uiSourceCode = this._networkMapping.uiSourceCodeForScriptURL(/** @type {string} */ (entry.sourceURL), script); |
if (!uiSourceCode) |
return null; |
return uiSourceCode.uiLocation(/** @type {number} */ (entry.sourceLineNumber), /** @type {number} */ (entry.sourceColumnNumber)); |