Compare commits

...

2 Commits

Author SHA1 Message Date
JEECG开源社区 e825ebccd5 !16 update jeecg-boot/jeecg-boot-base-common/src/main/java/org/jeecg/common/util/oConvertUtils.java.
Merge pull request !16 from 光速蜗牛/N/A
2020-08-28 11:13:53 +08:00
光速蜗牛 c20549fa0f update jeecg-boot/jeecg-boot-base-common/src/main/java/org/jeecg/common/util/oConvertUtils.java.
先判断null,再判断空
2020-07-25 17:12:09 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ public class oConvertUtils {
* @return
*/
public static<F,T> List<T> entityListToModelList(List<F> fromList, Class<T> tClass){
if(fromList.isEmpty() || fromList == null){
if(fromList == null || fromList.isEmpty()){
return null;
}
List<T> tList = new ArrayList<>();