diff --git a/js/ui/panelMenu.js b/js/ui/panelMenu.js index 939abbb48..bdfa465d3 100644 --- a/js/ui/panelMenu.js +++ b/js/ui/panelMenu.js @@ -214,7 +214,8 @@ const Button = new Lang.Class({ destroy: function() { this.actor._delegate = null; - this.menu.destroy(); + if (this.menu) + this.menu.destroy(); this.actor.destroy(); this.emit('destroy');