Edit bookmarks: do not try to show disposed popup

This commit is contained in:
Alexander Zolotov
2017-04-13 22:00:22 +03:00
parent 1f598fe985
commit 3392f9a07d
@@ -56,10 +56,12 @@ class EditBookmarkDescriptionAction extends DumbAwareAction {
BookmarkManager.getInstance(myProject).editDescription(bookmark);
myPopup.setUiVisible(true);
final JComponent content = myPopup.getContent();
if (content != null) {
myPopup.setSize(content.getPreferredSize());
if (myPopup != null && !myPopup.isDisposed()) {
myPopup.setUiVisible(true);
final JComponent content = myPopup.getContent();
if (content != null) {
myPopup.setSize(content.getPreferredSize());
}
}
}