From bb80849ccb2a69f9f3b80ca1657464bcd0f052a2 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Mon, 8 Sep 2014 16:53:46 +0200 Subject: [PATCH] IDEA-129326 IOOBE is thrown on attempt to expand Find Usage results --- platform/usageView/src/com/intellij/usages/ChunkExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/usageView/src/com/intellij/usages/ChunkExtractor.java b/platform/usageView/src/com/intellij/usages/ChunkExtractor.java index dbbaeb48b72f..b9db68c69ce3 100644 --- a/platform/usageView/src/com/intellij/usages/ChunkExtractor.java +++ b/platform/usageView/src/com/intellij/usages/ChunkExtractor.java @@ -203,7 +203,7 @@ public class ChunkExtractor { if (myDocumentStamp != myDocument.getModificationStamp()) { highlighter.restart(chars); myDocumentStamp = myDocument.getModificationStamp(); - } else if(lexer.getTokenStart() > start) { + } else if(lexer.getTokenType() == null || lexer.getTokenStart() > start) { highlighter.resetPosition(0); // todo restart from nearest position with initial state }