change return not null

This commit is contained in:
Looly 2020-05-21 16:43:14 +08:00
parent f7bf950073
commit ceaac0c412
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@
* 【extra 】 新增 QRCode base64 编码形式返回pr#878@Github
* 【core 】 ImgUtil增加toBase64DateUriURLUtil增加getDataUri方法
* 【core 】 IterUtil添加List转Map的工具方法pr#123@Gitee
* 【core 】 BeanValuePovider转换失败时返回原数据而非null
### Bug修复
* 【core 】 修复SimpleCache死锁问题issue#I1HOKB@Gitee

View File

@ -56,7 +56,8 @@ public class BeanValueProvider implements ValueProvider<String> {
}
}
result = Convert.convertWithCheck(valueType,result, null, ignoreError);
// 尝试将结果转换为目标类型如果转换失败返回原类型
result = Convert.convertWithCheck(valueType,result, result, ignoreError);
}
}
return result;