mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
do not commit document if project is already closed (IDEA-79970)
This commit is contained in:
@@ -466,7 +466,9 @@ public abstract class InplaceRefactoring {
|
||||
}
|
||||
}
|
||||
});
|
||||
PsiDocumentManager.getInstance(myProject).commitDocument(topLevelEditor.getDocument());
|
||||
if (!myProject.isDisposed() && myProject.isOpen()) {
|
||||
PsiDocumentManager.getInstance(myProject).commitDocument(topLevelEditor.getDocument());
|
||||
}
|
||||
}
|
||||
}, getCommandName(), null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user