From 1abc34710e6b05b72c7c8db945a98d556b29f7eb Mon Sep 17 00:00:00 2001 From: "peter.gromov" Date: Fri, 12 Nov 2010 17:14:50 +0300 Subject: [PATCH] don't show 'Documentation for null' in dynamic DOM (IDEA-60302) --- .../intellij/xml/impl/dom/AbstractDomChildrenDescriptor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xml/dom-impl/src/com/intellij/xml/impl/dom/AbstractDomChildrenDescriptor.java b/xml/dom-impl/src/com/intellij/xml/impl/dom/AbstractDomChildrenDescriptor.java index 95a2c47d9cbf..b8baa40361a2 100644 --- a/xml/dom-impl/src/com/intellij/xml/impl/dom/AbstractDomChildrenDescriptor.java +++ b/xml/dom-impl/src/com/intellij/xml/impl/dom/AbstractDomChildrenDescriptor.java @@ -115,6 +115,9 @@ public abstract class AbstractDomChildrenDescriptor implements XmlElementDescrip @Nullable public PsiElement getDeclaration() { final PomTarget target = ((CustomDomChildrenDescription)description).getTagNameDescriptor().findDeclaration(finalDomElement); + if (target == description) { + return childTag; + } return target == null ? null : PomService.convertToPsi(childTag.getProject(), target); }