mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fix
This commit is contained in:
@@ -126,7 +126,8 @@ public abstract class AnActionButton extends AnAction implements ShortcutProvide
|
||||
}
|
||||
|
||||
public void updateButton(AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(getContextComponent().isShowing());
|
||||
final JComponent component = getContextComponent();
|
||||
e.getPresentation().setEnabled(component != null && component.isShowing());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user