mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fix
This commit is contained in:
@@ -243,7 +243,7 @@ public class BraceMatchingUtil {
|
||||
}
|
||||
|
||||
public IElementType getTokenType(char ch, HighlighterIterator iterator) {
|
||||
final IElementType tokenType = iterator.getTokenType();
|
||||
final IElementType tokenType = (!iterator.atEnd())?iterator.getTokenType():null;
|
||||
|
||||
if(tokenType instanceof IJavaElementType) {
|
||||
if (ch == '}') return JavaTokenType.RBRACE;
|
||||
|
||||
Reference in New Issue
Block a user