mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-189500 Search does not work
Avoid NPE when caret field is suddenly null
This commit is contained in:
@@ -206,7 +206,11 @@ public class FindPopupPanel extends JBPanel implements FindUI {
|
||||
}
|
||||
showPoint = new RelativePoint(parent, new Point((parent.getSize().width - getPreferredSize().width) / 2, height));
|
||||
}
|
||||
mySearchComponent.selectAll();
|
||||
ApplicationManager.getApplication().invokeLater(() -> {
|
||||
if (mySearchComponent.getCaret() != null) {
|
||||
mySearchComponent.selectAll();
|
||||
}
|
||||
});
|
||||
WindowMoveListener windowListener = new WindowMoveListener(this);
|
||||
myTitlePanel.addMouseListener(windowListener);
|
||||
myTitlePanel.addMouseMotionListener(windowListener);
|
||||
|
||||
Reference in New Issue
Block a user