From 4eefb353dd18d5e8e676766ebdcb421df8d87b6a Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Wed, 1 Jun 2011 18:55:11 +0400 Subject: [PATCH] WI-6515 Application not responding Using the check condition that is guaranteed to avoid endless loop --- .../src/com/intellij/codeInsight/daemon/impl/IndentsPass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java index 15cd770d1284..f72f0f002567 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java @@ -357,7 +357,7 @@ public class IndentsPass extends TextEditorHighlightingPass implements DumbAware } else { int startLine = line; - while (line < lineIndents.length && lineIndents[line] == -1) { + while (line < lineIndents.length && lineIndents[line] < 0) { //noinspection AssignmentToForLoopParameter line++; }