[SPR-6004] Fixed NPE in BeanDefinitionParserDelegate when using empty namespace as the default
This commit is contained in:
parent
855eac549e
commit
05fe679384
|
|
@ -1363,7 +1363,7 @@ public class BeanDefinitionParserDelegate {
|
|||
if (handler != null) {
|
||||
return handler.decorate(node, originalDef, new ParserContext(this.readerContext, this, containingBd));
|
||||
}
|
||||
else if (namespaceUri.startsWith("http://www.springframework.org/")) {
|
||||
else if (namespaceUri != null && namespaceUri.startsWith("http://www.springframework.org/")) {
|
||||
error("Unable to locate Spring NamespaceHandler for XML schema namespace [" + namespaceUri + "]", node);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue