Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js

Issue 2727233004: Timeline: fix NPE in heavy stack view when clearing Timeline (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
index abe08608bb0a12947bda95e4b27e60e83af0e133..75c98695af596f75a623d706490c995b2f7eab2b 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
@@ -240,8 +240,10 @@ Timeline.TimelineTreeView = class extends UI.VBox {
if (this._searchableView)
this._searchableView.cancelSearch();
this._dataGrid.rootNode().removeChildren();
- if (!this._model)
+ if (!this._model) {
+ this._updateDetailsForSelection();
return;
+ }
this._root = this._buildTree();
var children = this._root.children();
var maxSelfTime = 0;
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698