Index: third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js b/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js |
index 1dc2328438d8fea0e611ec581ae144dc6164d1de..b0351bbf14f61d242969d83a1f73fef3aca4e6a5 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js |
+++ b/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js |
@@ -133,7 +133,7 @@ Components.LineLevelProfile.LineDecorator = class { |
var gutterType = 'CodeMirror-gutter-performance'; |
var decorations = uiSourceCode.decorationsForType(Components.LineLevelProfile.LineDecorator.type); |
textEditor.uninstallGutter(gutterType); |
- if (!decorations.size) |
+ if (!decorations || !decorations.size) |
return; |
textEditor.installGutter(gutterType, false); |
for (var decoration of decorations) { |