File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/github/abel533/mapperhelper Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public static MetaObject forObject(Object object) {
107
107
*/
108
108
public boolean supportMethod (String msId ) {
109
109
Class <?> mapperClass = getMapperClass (msId );
110
- if (this .mapperClass .isAssignableFrom (mapperClass )) {
110
+ if (mapperClass != null && this .mapperClass .isAssignableFrom (mapperClass )) {
111
111
String methodName = getMethodName (msId );
112
112
return methodMap .get (methodName ) != null ;
113
113
}
@@ -212,7 +212,7 @@ public static Class<?> getMapperClass(String msId) {
212
212
try {
213
213
return Class .forName (mapperClassStr );
214
214
} catch (ClassNotFoundException e ) {
215
- throw new RuntimeException ( "无法获取Mapper接口信息:" + msId ) ;
215
+ return null ;
216
216
}
217
217
}
218
218
You can’t perform that action at this time.
0 commit comments