Bug 145071 - Web Inspector: Uncaught exception in inspector page while handling event Console.messageAdded: TypeError: null is not an object (evaluating 'sourceCodeLocation.sourceCode')
Summary: Web Inspector: Uncaught exception in inspector page while handling event Cons...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-15 14:08 PDT by Timothy Hatcher
Modified: 2015-05-21 19:49 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2015-05-15 14:08:07 PDT
Uncaught exception in inspector page while handling event Console.messageAdded:  TypeError: null is not an object (evaluating 'sourceCodeLocation.sourceCode')

CallFrameView@Views/CallFrameView.js:40:46
_appendLocationLink@Views/ConsoleMessageView.js:307:61
ConsoleMessageView@Views/ConsoleMessageView.js:85:33
appendConsoleMessage@Controllers/JavaScriptLogViewController.js:142:69
_messageAdded@Views/LogContentView.js:321:71
dispatch@Base/Object.js:124:55
dispatchEventToListeners@Base/Object.js:131:17
messageWasAdded@Controllers/LogManager.js:48:38
messageAdded@Protocol/ConsoleObserver.js:47:48
dispatchEvent@Protocol/InspectorBackend.js:353:42
_dispatchEvent@Protocol/InspectorBackend.js:233:32
dispatch@Protocol/InspectorBackend.js:88:32
dispatchNextQueuedMessageFromBackend@Protocol/MessageDispatcher.js:42:34

It also triggers:

Views/CallFrameView.js:30:23: CONSOLE ERROR
Base/Main.js:1782:19: CONSOLE ERROR
Comment 1 Radar WebKit Bug Importer 2015-05-15 14:08:29 PDT
<rdar://problem/20980732>
Comment 2 Timothy Hatcher 2015-05-15 14:08:43 PDT
I hit this opening the Inspector on cnn.com. I can't reproduce right now though.
Comment 3 Radar WebKit Bug Importer 2015-05-15 14:09:06 PDT
<rdar://problem/20980743>
Comment 4 Nikita Vasilyev 2015-05-15 16:21:08 PDT
> Console.messageAdded:  TypeError: null is not an object (evaluating 'sourceCodeLocation.sourceCode')

I've seen this a couple of times, but the exact steps to reproduce the problem are still unclear to me. 

However, it should fixed with https://bugs.webkit.org/show_bug.cgi?id=144982 as I added  "if (sourceCodeLocation)" in WebInspector.CallFrameView.
Comment 5 Nikita Vasilyev 2015-05-21 19:49:28 PDT
Fixed with https://bugs.webkit.org/show_bug.cgi?id=144982.