Index: third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
index a6c0fc9a7bc976947e8ff5e4ffc0755aa51946fc..95c131c887900aaa4e81c5e08d3d058ff748c343 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
@@ -24,6 +24,8 @@ WebInspector.FormatterScriptMapping.prototype = { |
{ |
var debuggerModelLocation = /** @type {!WebInspector.DebuggerModel.Location} */ (rawLocation); |
var script = debuggerModelLocation.script(); |
+ if (!script) |
+ return null; |
var uiSourceCode = this._editorAction._uiSourceCodes.get(script); |
if (!uiSourceCode) |
return null; |