Index: Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js |
diff --git a/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js b/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js |
index 7cdc8e244986cf22db5c9d166fca5b22f28d6980..39b8b63b3e373efd6c3c34733858643bbd32ec2e 100644 |
--- a/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js |
+++ b/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js |
@@ -217,6 +217,8 @@ WebInspector.PresentationConsoleMessageHelper.prototype = { |
for (var i = 0; i < messages.length; i++) { |
var message = messages[i]; |
var rawLocation = this._rawLocation(message); |
+ if (!rawLocation) |
+ continue; |
if (script.target() === message.target() && script.scriptId === rawLocation.scriptId) |
this._addConsoleMessageToScript(message, rawLocation); |
else |