Index: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
index fc1a884dd99fb79606ca08662f5cb8819c98543f..8b76231e13544c26be6e460800e0b46dbde5f27f 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
@@ -64,6 +64,8 @@ WebInspector.ResourceScriptMapping.prototype = { |
{ |
var debuggerModelLocation = /** @type {!WebInspector.DebuggerModel.Location} */ (rawLocation); |
var script = debuggerModelLocation.script(); |
+ if (!script) |
+ return null; |
var uiSourceCode = this._workspaceUISourceCodeForScript(script); |
if (!uiSourceCode) |
return null; |