This commit is contained in:
闵柳华 2023-05-06 09:10:44 +08:00
commit df448edd9a

View File

@ -94,8 +94,8 @@ public class TableInfoFactory {
private static Class<?> getEntityClass(Class<?> mapperClass) {
if (mapperClass == null) {
throw new NullPointerException("mapperClass can not be null.");
if (mapperClass == null || mapperClass == Object.class) {
return null;
}
Type[] genericInterfaces = mapperClass.getGenericInterfaces();
if (genericInterfaces.length == 1) {