EA-144592 - assert: EditorHistoryManager.fileOpenedImpl

GitOrigin-RevId: e792da137d58b26abe06e8c8b60f7ea3dd3f73ce
This commit is contained in:
Dmitry Batrak
2020-03-20 09:02:29 +00:00
committed by intellij-monorepo-bot
parent bb151241b8
commit 5d69edae50
@@ -101,7 +101,8 @@ public final class EditorHistoryManager implements PersistentStateComponent<Elem
oldProviders = new FileEditorProvider[] { fallbackProvider };
}
if (editors.length <= 0) {
LOG.error("No editors for file " + file.getPresentableUrl());
// fileOpened notification is asynchronous, file could have been closed by now due to some reason
return;
}
FileEditor selectedEditor = editorManager.getSelectedEditor(file);
if (selectedEditor == null) {