mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix npe
GitOrigin-RevId: d750cc4a7a3a16b1b2920cd4924726a8d5f1be28
This commit is contained in:
committed by
intellij-monorepo-bot
parent
920e130bd7
commit
e0448f0861
@@ -137,7 +137,8 @@ public class HtmlDocumentationProvider implements DocumentationProvider, Externa
|
||||
|
||||
if (element instanceof FakePsiElement) {
|
||||
nameElement = element.getNavigationElement();
|
||||
isTag = nameElement != null && nameElement.getParent().getText().startsWith("element");
|
||||
PsiElement parent = nameElement == null ? null : nameElement.getParent();
|
||||
isTag = parent != null && parent.getText().startsWith("element");
|
||||
} else if (element instanceof XmlElementDecl) {
|
||||
nameElement = ((XmlElementDecl)element).getNameElement();
|
||||
} else if (element instanceof XmlAttributeDecl) {
|
||||
|
||||
Reference in New Issue
Block a user