mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
Merge branch 'main' of https://gitee.com/mybatis-flex/mybatis-flex
This commit is contained in:
commit
df448edd9a
@ -94,8 +94,8 @@ public class TableInfoFactory {
|
|||||||
|
|
||||||
|
|
||||||
private static Class<?> getEntityClass(Class<?> mapperClass) {
|
private static Class<?> getEntityClass(Class<?> mapperClass) {
|
||||||
if (mapperClass == null) {
|
if (mapperClass == null || mapperClass == Object.class) {
|
||||||
throw new NullPointerException("mapperClass can not be null.");
|
return null;
|
||||||
}
|
}
|
||||||
Type[] genericInterfaces = mapperClass.getGenericInterfaces();
|
Type[] genericInterfaces = mapperClass.getGenericInterfaces();
|
||||||
if (genericInterfaces.length == 1) {
|
if (genericInterfaces.length == 1) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user