We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b016b8 commit ea252e3Copy full SHA for ea252e3
src/main/java/org/apache/ibatis/builder/xml/XMLMapperBuilder.java
@@ -106,7 +106,7 @@ public XNode getSqlFragment(String refid) {
106
private void configurationElement(XNode context) {
107
try {
108
String namespace = context.getStringAttribute("namespace");
109
- if (namespace.equals("")) {
+ if (namespace == null || namespace.equals("")) {
110
throw new BuilderException("Mapper's namespace cannot be empty");
111
}
112
builderAssistant.setCurrentNamespace(namespace);
0 commit comments