Bug 201716 - Uncaught Exception: TypeError: null is not an object (evaluating 'selectedTreeElement.representedObject')
Summary: Uncaught Exception: TypeError: null is not an object (evaluating 'selectedTre...
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: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-09-12 00:01 PDT by Joseph Pecoraro
Modified: 2019-09-12 00:50 PDT (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (5.10 KB, patch)
2019-09-12 00:04 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 Joseph Pecoraro 2019-09-12 00:01:25 PDT
Uncaught Exception: TypeError: null is not an object (evaluating 'selectedTreeElement.representedObject')

* STEPS TO REPRODUCE
1. Inspect any page
2. Set a breakpoint by clicking in the gutter
3. Delete the breakpoint by dragging it off the gutter
  => Exception

* NOTES
- The Breakpoint Tree Outline doesn't have any selected tree element and the breakpoint is getting removed.

-------
Uncaught Exceptions:
 - TypeError: null is not an object (evaluating 'selectedTreeElement.representedObject') (at SourcesNavigationSidebarPanel.js:1763:36)
    _handleBreakpointElementAddedOrRemoved @ SourcesNavigationSidebarPanel.js:1763:36
    dispatch @ Object.js:165:30
    dispatchEventToListeners @ Object.js:172:17
    removeChildAtIndex @ TreeOutline.js:392:49
    removeChild @ TreeOutline.js:406:32
    _removeDebuggerTreeElement @ SourcesNavigationSidebarPanel.js:1209:38
    _removeBreakpoint @ SourcesNavigationSidebarPanel.js:1148:40
    _handleDebuggerBreakpointRemoved @ SourcesNavigationSidebarPanel.js:1985:31
    dispatch @ Object.js:165:30
    dispatchEventToListeners @ Object.js:172:17
    removeBreakpoint @ DebuggerManager.js:636:38
    textEditorBreakpointRemoved @ SourceCodeTextEditor.js:1329:44
    _documentMouseUp @ TextEditor.js:1598:63
    _documentMouseUp @ [native code]
-------
Comment 1 Radar WebKit Bug Importer 2019-09-12 00:01:46 PDT
<rdar://problem/55292615>
Comment 2 Joseph Pecoraro 2019-09-12 00:04:08 PDT
Created attachment 378627 [details]
[PATCH] Proposed Fix
Comment 3 Devin Rousso 2019-09-12 00:06:25 PDT
Comment on attachment 378627 [details]
[PATCH] Proposed Fix

r=me, good catch!
Comment 4 WebKit Commit Bot 2019-09-12 00:50:24 PDT
Comment on attachment 378627 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 378627

Committed r249800: <https://trac.webkit.org/changeset/249800>
Comment 5 WebKit Commit Bot 2019-09-12 00:50:26 PDT
All reviewed patches have been landed.  Closing bug.