提交 05fe6793 编写于 作者: R Rob Harrop

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

上级 855eac54
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册