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

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

Issue 2931143003: DevTools: make debugger's rawLocationToUILocation return nullable type (Closed)
Patch Set: add test Created 3 years, 6 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
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
index da603a41043c76f88d86a31c07ae247964f4376e..6bb5bbd68e8f8b1d1c6bcd0fd591852e12933089 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -606,7 +606,7 @@ Timeline.TimelineUIUtils = class {
if (!rawLocation)
return null;
var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(rawLocation);
- return uiLocation.linkText();
+ return uiLocation ? uiLocation.linkText() : null;
}
/**

Powered by Google App Engine
This is Rietveld 408576698