From 36d5872ae1c45238964d44a419c2aa46764edd4e Mon Sep 17 00:00:00 2001 From: yulichang <570810310@qq.com> Date: Sat, 12 Nov 2022 15:14:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E5=90=AF=E5=8A=A8=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/github/yulichang/mapper/MPJTableMapperHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/github/yulichang/mapper/MPJTableMapperHelper.java b/src/main/java/com/github/yulichang/mapper/MPJTableMapperHelper.java index 450343f..b4f1541 100644 --- a/src/main/java/com/github/yulichang/mapper/MPJTableMapperHelper.java +++ b/src/main/java/com/github/yulichang/mapper/MPJTableMapperHelper.java @@ -14,7 +14,9 @@ public class MPJTableMapperHelper { private static final Map, Class> CACHE = new ConcurrentHashMap<>(); public static void init(Class clazz, Class mapper) { - CACHE.put(clazz, mapper); + if (clazz != null) { + CACHE.put(clazz, mapper); + } } public static Class get(Class clazz) { From e344fc3babc0af536b1b4772b7c4dacb08cef711 Mon Sep 17 00:00:00 2001 From: yulichang <570810310@qq.com> Date: Sat, 12 Nov 2022 15:20:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20=E5=90=AF=E5=8A=A8=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 758701e..6d47632 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.github.yulichang mybatis-plus-join - 1.3.2 + 1.3.3 mybatis-plus-join An enhanced toolkit of Mybatis-Plus to simplify development. https://github.com/yulichang/mybatis-plus-join