Changeset 182578 in webkit


Ignore:
Timestamp:
Apr 8, 2015, 6:37:52 PM (10 years ago)
Author:
Joseph Pecoraro
Message:

Fix uncaught exception seen in Inspector.

Reviewed by Timothy Hatcher.

  • UserInterface/Views/TreeOutline.js:

(WebInspector.TreeOutline.prototype.removeChild):
Add a null check. Everywhere else null checks this member variable
which may not exist yet, this case was missing the check.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r182576 r182578  
     12015-04-08  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Fix uncaught exception seen in Inspector.
     4
     5        Reviewed by Timothy Hatcher.
     6
     7        * UserInterface/Views/TreeOutline.js:
     8        (WebInspector.TreeOutline.prototype.removeChild):
     9        Add a null check. Everywhere else null checks this member variable
     10        which may not exist yet, this case was missing the check.
     11
    1122015-04-08  Tobias Reiss  <tobi+webkit@basecode.de>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js

    r182042 r182578  
    196196
    197197        if (!this.children.length) {
    198             this._listItemNode.classList.remove("parent");
     198            if (this._listItemNode)
     199                this._listItemNode.classList.remove("parent");
    199200            this.hasChildren = false;
    200201        }
Note: See TracChangeset for help on using the changeset viewer.