From f26d42b680f93c65d6dc3319a50ede742fcd1a03 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Mon, 11 Jul 2016 11:01:08 +0200 Subject: [PATCH] pass empty progress indicator so progress inside won't fail --- .../intellij/codeInsight/daemon/impl/ShowIntentionsPass.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java index 1db33b8ce8c8..12028ab30314 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java @@ -47,6 +47,7 @@ import com.intellij.openapi.editor.ex.MarkupModelEx; import com.intellij.openapi.editor.ex.RangeHighlighterEx; import com.intellij.openapi.editor.impl.DocumentMarkupModel; import com.intellij.openapi.fileEditor.FileDocumentManager; +import com.intellij.openapi.progress.EmptyProgressIndicator; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.project.DumbService; import com.intellij.openapi.project.Project; @@ -396,7 +397,7 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass { localInspectionTool.inspectionFinished(session, holder); return true; }; - JobLauncher.getInstance().invokeConcurrentlyUnderProgress(intentionTools, null, false, processor); + JobLauncher.getInstance().invokeConcurrentlyUnderProgress(intentionTools, new EmptyProgressIndicator(), false, processor); } } }