mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE (EA-80827)
This commit is contained in:
@@ -392,7 +392,7 @@ public class XmlAttributeImpl extends XmlElementImpl implements XmlAttribute, Hi
|
||||
@Nullable
|
||||
public XmlAttributeDescriptor getDescriptor() {
|
||||
final PsiElement parentElement = getParent();
|
||||
if (parentElement instanceof XmlDecl) return null;
|
||||
if (parentElement == null) return null; // e.g. XmlDecl or PI
|
||||
final XmlTag tag = (XmlTag)parentElement;
|
||||
final XmlElementDescriptor descr = tag.getDescriptor();
|
||||
if (descr == null) return null;
|
||||
|
||||
Reference in New Issue
Block a user