| Index: third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js b/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
|
| index c20310caae8bbb395b72e5c4eab0af05f2267999..d4aaba33cc46566df27ac0c47998173d7a3b0474 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
|
| @@ -391,7 +391,8 @@ WebInspector.SoftContextMenu.prototype = {
|
| {
|
| if (this._subMenu)
|
| this._subMenu._discardSubMenus();
|
| - this.element.remove();
|
| + if (this.element)
|
| + this.element.remove();
|
| if (this._parentMenu)
|
| delete this._parentMenu._subMenu;
|
| }
|
|
|