fixed: ProviderUtil NPE

This commit is contained in:
开源海哥 2023-04-16 15:45:22 +08:00
parent 9f433566be
commit a0ac8d5eb8

View File

@ -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) {