IDEA-129326 IOOBE is thrown on attempt to expand Find Usage results

This commit is contained in:
Maxim.Mossienko
2014-09-08 16:53:46 +02:00
parent 2a61bbaf73
commit bb80849ccb
@@ -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
}