Prevent NPE on classFileContainer during markOccurrences

This commit is contained in:
Konloch 2024-09-25 20:39:08 -06:00
parent 88ae27a94a
commit ec67ba8ada

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -480,7 +480,11 @@ public class BytecodeViewPanelUpdater implements Runnable
private void markOccurrences(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, MyErrorStripe errorStripe)
{
RSyntaxTextAreaHighlighterEx highlighterEx = (RSyntaxTextAreaHighlighterEx) textArea.getHighlighter();
//prevent NPE
if(classFileContainer == null)
return;
RSyntaxTextAreaHighlighterEx highlighterEx = (RSyntaxTextAreaHighlighterEx) textArea.getHighlighter();
Token token = textArea.modelToToken(textArea.getCaretPosition());
if (token == null)
{