mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-78416 - NPE: ResourceBundlePropertyStructureViewElement$.getTextAttributes
This commit is contained in:
+5
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user