mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
fix 启动空指针异常
This commit is contained in:
parent
8251a84f81
commit
36d5872ae1
@ -14,7 +14,9 @@ public class MPJTableMapperHelper {
|
||||
private static final Map<Class<?>, 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user