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

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1818 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Rob Harrop
2009-09-04 16:59:07 +00:00
parent d38e94dbaa
commit f00f605469
@@ -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 {