Skip to content

Commit

Permalink
Prevent a potential crash if menu is null
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbadia committed Aug 25, 2019
1 parent dbc8453 commit 6f9f376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frameworks/desktop/views/popup_button.js
Expand Up @@ -183,7 +183,7 @@ SC.PopupButtonView = SC.ButtonView.extend({
_showMenu: function() {
var menu = this.get('menu');

menu.popup(this, this.get('menuPreferMatrix'));
if (menu) menu.popup(this, this.get('menuPreferMatrix'));
},

/** @private */
Expand Down

0 comments on commit 6f9f376

Please sign in to comment.