mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix NPE in RngElementDescriptor - post review fix
IJ-CR-7490 GitOrigin-RevId: 28812bb0db7dffc1095e291954c1fbff9b618dff
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7e16cc9b20
commit
9db591e868
+1
-1
@@ -422,7 +422,7 @@ public class RngElementDescriptor implements XmlElementDescriptor {
|
||||
if (prevPrevSibling == null) {
|
||||
LOG.error("Failed to locate type for RNC element - " + myName);
|
||||
}
|
||||
myKind = "element".equals(doIfNotNull(prevPrevSibling, PsiElement::getText)) ? Kind.ELEMENT : Kind.ATTRIBUTE;
|
||||
myKind = prevPrevSibling != null && "element".equals(prevPrevSibling.getText()) ? Kind.ELEMENT : Kind.ATTRIBUTE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user