update jeecg-boot/jeecg-boot-base-common/src/main/java/org/jeecg/common/util/oConvertUtils.java.

先判断null,再判断空
This commit is contained in:
光速蜗牛 2020-07-25 17:12:09 +08:00 committed by Gitee
parent 01ac622c0c
commit c20549fa0f
1 changed files with 1 additions and 1 deletions

View File

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