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

@@ -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;