mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SCR43276 fixed
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user