mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-35209 - assert: DocumentFoldingInfo.loadFromEditor
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ public class CodeFoldingManagerImpl extends CodeFoldingManager implements Projec
|
||||
PsiDocumentManager.getInstance(myProject).commitDocument(document);
|
||||
|
||||
Editor[] otherEditors = EditorFactory.getInstance().getEditors(document, myProject);
|
||||
if (otherEditors.length == 0) {
|
||||
if (otherEditors.length == 0 && !editor.isDisposed()) {
|
||||
getDocumentFoldingInfo(document).loadFromEditor(editor);
|
||||
}
|
||||
EditorFoldingInfo.get(editor).dispose();
|
||||
|
||||
Reference in New Issue
Block a user