QuickEditHandler: focus owner null-check

This commit is contained in:
Nicolay Mitropolsky
2018-08-06 16:28:50 +03:00
parent 1c34af5029
commit 2377666ee1
@@ -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());
}
}