Fix uncaught exception seen in Inspector.
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Apr 2015 01:37:52 +0000 (01:37 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Apr 2015 01:37:52 +0000 (01:37 +0000)
commit1d5f8869bbcfb778e348ceb33398a680c5a6f7fc
tree647148f2135b172d1d5d4942c72b39069e2c924e
parentb940dc3b4745e01ec85b3cddf20c17a05ec64403
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/TreeOutline.js