inspection toolwindow: AOOE while removeAllHighlighters() in preview editor IDEA-157464

This commit is contained in:
Dmitry Batkovich
2016-06-15 11:37:41 +03:00
parent 18e726bd26
commit b6e2f1b29b
@@ -549,8 +549,8 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
myPreviewEditor.putUserData(PREVIEW_EDITOR_IS_REUSED_KEY, true);
myPreviewEditor.getFoldingModel().runBatchFoldingOperation(() -> {
myPreviewEditor.getFoldingModel().clearFoldRegions();
myPreviewEditor.getMarkupModel().removeAllHighlighters();
});
myPreviewEditor.getMarkupModel().removeAllHighlighters();
}
else {
myPreviewEditor = (EditorEx)EditorFactory.getInstance().createEditor(document, myProject, file.getVirtualFile(), true);