mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-827720 - IAE: XmlUtil.$$$reportNull$$$0
GitOrigin-RevId: 74cffaeb3aa8ef5a453ed6cb6da10ae01e8ecefa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5239384170
commit
a7c9ff2c57
@@ -160,7 +160,9 @@ public final class TagNameVariantCollector {
|
||||
if (XmlUtil.nsFromTemplateFramework(childNamespace)) return true;
|
||||
if (parentTag == null) return true;
|
||||
if (parentDescriptor == null) return false;
|
||||
final XmlTag childTag = parentTag.createChildTag(childDescriptor.getName(), childNamespace, null, false);
|
||||
String name = childDescriptor.getName();
|
||||
if (name == null) return false;
|
||||
final XmlTag childTag = parentTag.createChildTag(name, childNamespace, null, false);
|
||||
childTag.putUserData(XmlElement.INCLUDING_ELEMENT, parentTag);
|
||||
XmlElementDescriptor descriptor = parentDescriptor.getElementDescriptor(childTag, parentTag);
|
||||
return descriptor != null && (!strict || !(descriptor instanceof AnyXmlElementDescriptor));
|
||||
|
||||
Reference in New Issue
Block a user