From: Alexey Utkin Date: Mon, 19 May 2014 16:17:30 +0000 (+0400) Subject: IDEA-125285, EA-645852: AppCode exception on start up +review X-Git-Tag: idea/136.1809~7 X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=30287aca431060fedc7993e96c8e82569c4b5555 IDEA-125285, EA-645852: AppCode exception on start up +review --- 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 92d74cfef60f..258717986c31 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/highlighting/BraceHighlightingHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/highlighting/BraceHighlightingHandler.java @@ -103,7 +103,7 @@ public class BraceHighlightingHandler { static void lookForInjectedAndMatchBracesInOtherThread(@NotNull final Editor editor, @NotNull final Alarm alarm, @NotNull final Processor processor) { - ApplicationManagerEx.getApplicationEx().assertIsDispatchThread(); + ApplicationManagerEx.getApplicationEx().assertIsDispatchThread(editor.getComponent()); final Project project = editor.getProject(); if (project == null || project.isDisposed()) return; if (!PROCESSED_EDITORS.add(editor)) {