mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
QuickEditHandler: focus owner null-check
This commit is contained in:
+1
-1
@@ -254,7 +254,7 @@ public class QuickEditHandler implements Disposable, DocumentListener {
|
||||
ApplicationManager.getApplication().invokeLater(() -> {
|
||||
Component owner = FocusManager.getCurrentManager().getFocusOwner();
|
||||
closeEditor();
|
||||
owner.requestFocus();
|
||||
if (owner != null) owner.requestFocus();
|
||||
}, myProject.getDisposed());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user