Bug 157239 - Uncaught Exception: TypeError: null is not an object (evaluating 'sourceCodeLocation.formattedLineNumber')
Summary: Uncaught Exception: TypeError: null is not an object (evaluating 'sourceCodeL...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-30 17:50 PDT by Timothy Hatcher
Modified: 2016-05-02 12:59 PDT (History)
8 users (show)

See Also:


Attachments
Test Page (43 bytes, text/html)
2016-04-30 17:50 PDT, Timothy Hatcher
no flags Details
[PATCH] Proposed Fix (3.84 KB, patch)
2016-05-02 11:51 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2016-04-30 17:50:46 PDT
Created attachment 277836 [details]
Test Page

Steps:
1) Load attached page.
2) Open Inspector
3) Eval "throw 'Hi'" in the console

-------
Auto-generated details:

Inspected URL:        file:///Users/Timothy/Desktop/test.html
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/602.1.30+ (KHTML, like Gecko)
Uncaught exceptions:
 - TypeError: null is not an object (evaluating 'sourceCodeLocation.formattedLineNumber') (at SourceCodeTextEditor.js:807:44)
-------

* STEPS TO REPRODUCE
1. What were you doing? Include setup or other preparations to reproduce the exception.
2. Include explicit, accurate, and minimal steps taken. Do not include extraneous or irrelevant steps.

* NOTES
Document any additional information that might be useful in resolving the problem, such as screen shots or other included attachments.
Comment 1 Radar WebKit Bug Importer 2016-04-30 17:50:58 PDT
<rdar://problem/26030791>
Comment 2 Timothy Hatcher 2016-04-30 17:51:32 PDT
I could not hit this with other test page content. It had to involve an eval() that throws. Weird…
Comment 3 Joseph Pecoraro 2016-05-02 11:51:09 PDT
Created attachment 277917 [details]
[PATCH] Proposed Fix
Comment 4 WebKit Commit Bot 2016-05-02 12:59:14 PDT
Comment on attachment 277917 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 277917

Committed r200334: <http://trac.webkit.org/changeset/200334>
Comment 5 WebKit Commit Bot 2016-05-02 12:59:18 PDT
All reviewed patches have been landed.  Closing bug.