SCR43276 fixed

This commit is contained in:
Olesya Smirnova
2005-02-11 15:16:54 +03:00
parent 99654454ba
commit 211e57ae56
@@ -43,7 +43,7 @@ public class XmlFileTreeElement extends PsiTreeElementBase<XmlFile> {
public StructureViewTreeElement[] getChildrenBase() {
XmlDocument document = getElement().getDocument();
if (document != null) {
if (document != null && document.getRootTag() != null) {
return new StructureViewTreeElement[]{new XmlTagTreeElement(document.getRootTag())};
}
return new StructureViewTreeElement[0];