mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: NPE in TableInfoFactory.java
This commit is contained in:
parent
a7119d5da0
commit
1522300ff6
@ -173,7 +173,9 @@ public class TableInfoFactory {
|
||||
ParameterizedType parameterizedType = (ParameterizedType) type;
|
||||
Type rawType = parameterizedType.getRawType();
|
||||
Type[] typeArguments = parameterizedType.getActualTypeArguments();
|
||||
if (actualTypeArguments != null && actualTypeArguments.length > 0) {
|
||||
adjustTypeArguments(mapperClass, actualTypeArguments, typeArguments);
|
||||
}
|
||||
if (rawType == BaseMapper.class) {
|
||||
// 找到了
|
||||
if (typeArguments[0] instanceof Class) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user