[SPR-6004] Fixed NPE in BeanDefinitionParserDelegate when using empty namespace as the default

This commit is contained in:
Rob Harrop 2009-09-04 16:59:07 +00:00
parent 855eac549e
commit 05fe679384
1 changed files with 1 additions and 1 deletions

View File

@ -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 {