properties: check element is valid before return property (EA-99905)

This commit is contained in:
Dmitry Batkovich
2017-04-21 13:49:10 +03:00
parent 433ff02fa2
commit cc8cbc7c30
@@ -58,7 +58,7 @@ public class ResourceBundlePropertyStructureViewElement implements StructureView
}
public IProperty getProperty() {
return myProperty;
return myProperty.getPsiElement().isValid() ? myProperty : null;
}
@NotNull