mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection toolwindow: AOOE while removeAllHighlighters() in preview editor IDEA-157464
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user