From 3110925febf6d969c6f16c8b0765de8a8bdf5973 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 28 Oct 2013 19:42:26 +0400 Subject: [PATCH] already disposed --- .../codeInsight/highlighting/BraceHighlightingHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/highlighting/BraceHighlightingHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/highlighting/BraceHighlightingHandler.java index 7fa5e84bc237..f5596d890c8c 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/highlighting/BraceHighlightingHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/highlighting/BraceHighlightingHandler.java @@ -108,7 +108,7 @@ public class BraceHighlightingHandler { @NotNull final Processor processor) { ApplicationManagerEx.getApplicationEx().assertIsDispatchThread(); final Project project = editor.getProject(); - if (project == null) return; + if (project == null || project.isDisposed()) return; if (!PROCESSED_EDITORS.add(editor)) { // Skip processing if that is not really necessary. // Assuming to be in EDT here.