mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fixed
This commit is contained in:
@@ -47,7 +47,9 @@ public class NamespaceFilter implements ElementFilter {
|
||||
if (psiFile instanceof XmlFile) {
|
||||
// We use file references for as dtd namespace
|
||||
// But we should also check PUBLIC ID for namespace
|
||||
final XmlProlog prolog = ((XmlFile)psiFile).getDocument().getProlog();
|
||||
XmlDocument document = ((XmlFile)psiFile).getDocument();
|
||||
if (document == null) return false;
|
||||
final XmlProlog prolog = document.getProlog();
|
||||
|
||||
if (prolog != null) {
|
||||
final XmlDoctype doctype = prolog.getDoctype();
|
||||
|
||||
Reference in New Issue
Block a user