mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip null TextAttributesKey when processing var arg (EA-59728)
This commit is contained in:
@@ -282,6 +282,7 @@ public class ChunkExtractor {
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
if (key == null) continue;
|
||||
final TextAttributesKey fallbackAttributeKey = key.getFallbackAttributeKey();
|
||||
if (fallbackAttributeKey != null && isHighlightedAsComment(fallbackAttributeKey)) {
|
||||
return true;
|
||||
@@ -295,6 +296,7 @@ public class ChunkExtractor {
|
||||
if (key == DefaultLanguageHighlighterColors.STRING || key == SyntaxHighlighterColors.STRING) {
|
||||
return true;
|
||||
}
|
||||
if (key == null) continue;
|
||||
final TextAttributesKey fallbackAttributeKey = key.getFallbackAttributeKey();
|
||||
if (fallbackAttributeKey != null && isHighlightedAsString(fallbackAttributeKey)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user