don't show 'Documentation for null' in dynamic DOM (IDEA-60302)

This commit is contained in:
peter.gromov
2010-11-12 17:19:30 +03:00
parent 12a40c1b0f
commit 1abc34710e
@@ -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);
}