mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fixed: ProviderUtil NPE
This commit is contained in:
parent
9f433566be
commit
a0ac8d5eb8
@ -41,7 +41,8 @@ class ProviderUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getTableName(Map params) {
|
public static String getTableName(Map params) {
|
||||||
return params.get(FlexConsts.TABLE_NAME).toString().trim();
|
Object tableNameObj = params.get(FlexConsts.TABLE_NAME);
|
||||||
|
return tableNameObj != null ? tableNameObj.toString().trim() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String[] getPrimaryKeys(Map params) {
|
public static String[] getPrimaryKeys(Map params) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user