From da38b4b5f8fcc66ba6ff2b046589df9547ecf340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E6=B5=B7=E5=93=A5?= Date: Sat, 6 May 2023 08:43:19 +0800 Subject: [PATCH] =?UTF-8?q?fixed=EF=BC=9A=E4=B8=8D=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=87=AA=E5=B7=B1=E6=89=A9=E5=B1=95=20mapper=20=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9Bclose=20#I6ZTS3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mybatisflex/core/table/TableInfoFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java index 1be9a844..06006c4c 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java @@ -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) {