EA-78416 - NPE: ResourceBundlePropertyStructureViewElement$.getTextAttributes

This commit is contained in:
Dmitry Batkovich
2016-01-28 18:01:21 +03:00
parent 3d9430ae8b
commit 16dc890fce
@@ -127,9 +127,11 @@ public class ResourceBundlePropertyStructureViewElement implements StructureView
if (getProperty().getPsiElement().isValid()) {
myInspectionPassInfo =
ResourceBundleEditorInspectionPass.inspect(getProperty().getKey(), getProperty().getPropertiesFile().getResourceBundle());
TextAttributes highlightingAttributes = myInspectionPassInfo.getTextAttributes(colorsScheme);
if (highlightingAttributes != null) {
return TextAttributes.merge(baseAttrs, highlightingAttributes);
if (myInspectionPassInfo != null) {
TextAttributes highlightingAttributes = myInspectionPassInfo.getTextAttributes(colorsScheme);
if (highlightingAttributes != null) {
return TextAttributes.merge(baseAttrs, highlightingAttributes);
}
}
}
return baseAttrs;