Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/CommandMenu.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/CommandMenu.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/CommandMenu.js |
index e70cb71d40eb3a2eaccb92be3aff155fce215dfc..93d494dcf4de2a48f15d899b558fdb3b0ad0ef03 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/CommandMenu.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/CommandMenu.js |
@@ -225,10 +225,12 @@ UI.CommandMenuDelegate = class extends UI.FilteredListWidget.Delegate { |
/** |
* @override |
- * @param {number} itemIndex |
+ * @param {?number} itemIndex |
* @param {string} promptValue |
*/ |
selectItem(itemIndex, promptValue) { |
+ if (itemIndex === null) |
+ return; |
this._commands[itemIndex].execute(); |
} |