don't run intentions on closed editor (EA-77330 - assert: AbstractPopup.showInBestPositionFor)

This commit is contained in:
peter
2016-02-09 17:38:28 +01:00
parent dda18463c5
commit aae99ce591
@@ -255,7 +255,7 @@ public class IntentionListStep implements ListPopupStep<IntentionActionWithTextC
ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override
public void run() {
if (myProject.isDisposed()) return;
if (myProject.isDisposed() || myEditor != null && myEditor.isDisposed()) return;
if (DumbService.isDumb(myProject) && !DumbService.isDumbAware(cachedAction)) {
DumbService.getInstance(myProject).showDumbModeNotification(cachedAction.getText() + " is not available during indexing");
return;