skip null TextAttributesKey when processing var arg (EA-59728)

This commit is contained in:
Maxim.Mossienko
2014-10-23 09:39:25 +02:00
parent 78ad5bf8ee
commit d24f468b48
@@ -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;