EA-35209 - assert: DocumentFoldingInfo.loadFromEditor

This commit is contained in:
Denis.Zhdanov
2012-04-10 08:08:55 +04:00
parent 6ec3eab30d
commit 23fa117ce3
@@ -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();