mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE
This commit is contained in:
@@ -111,7 +111,13 @@ public class HtmlDocumentationProvider implements DocumentationProvider {
|
||||
isTag = !(element.getParent() instanceof XmlAttribute);
|
||||
} else {
|
||||
nameElement = element;
|
||||
isTag = context != null && element.getText().startsWith(context.getName());
|
||||
if (context == null) {
|
||||
isTag = false;
|
||||
}
|
||||
else {
|
||||
String text = element.getText();
|
||||
isTag = text != null && text.startsWith(context.getName());
|
||||
}
|
||||
}
|
||||
|
||||
if (nameElement!=null) {
|
||||
|
||||
Reference in New Issue
Block a user