Commit fce1f860d3490b52e1e52e21541d460a6b2a827c
1 parent
9204b409
【issues/I5BUC4】DictAspect.java文件判空逻辑不严谨
Showing
1 changed file
with
1 additions
and
1 deletions
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/aspect/DictAspect.java
... | ... | @@ -416,7 +416,7 @@ public class DictAspect { |
416 | 416 | * @return |
417 | 417 | */ |
418 | 418 | private Boolean checkHasDict(List<Object> records){ |
419 | - if(oConvertUtils.isNotEmpty(records)){ | |
419 | + if(oConvertUtils.isNotEmpty(records) && records.size()>0){ | |
420 | 420 | for (Field field : oConvertUtils.getAllFields(records.get(0))) { |
421 | 421 | if (oConvertUtils.isNotEmpty(field.getAnnotation(Dict.class))) { |
422 | 422 | return true; |
... | ... |