mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-82744 Bookmarks: NPE at BookmarksAction$EditBookmarkDescriptionAction.actionPerformed() after clicking in the popup with opened description dialog
This commit is contained in:
+4
-1
@@ -66,7 +66,10 @@ class EditBookmarkDescriptionAction extends DumbAwareAction {
|
||||
BookmarkManager.getInstance(myProject).setDescription(b, description);
|
||||
|
||||
myPopup.setUiVisible(true);
|
||||
myPopup.setSize(myPopup.getContent().getPreferredSize());
|
||||
final JComponent content = myPopup.getContent();
|
||||
if (content != null) {
|
||||
myPopup.setSize(content.getPreferredSize());
|
||||
}
|
||||
}
|
||||
|
||||
public void setPopup(JBPopup popup) {
|
||||
|
||||
Reference in New Issue
Block a user