Skip to content

Commit

Permalink
Update MenuServiceImpl.java (#656)
Browse files Browse the repository at this point in the history
防止isQuery为空时自动拆箱出现NullPointerException
  • Loading branch information
yuyu1025 authored Jul 19, 2021
1 parent 12a7e03 commit 6c75df5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class MenuServiceImpl implements MenuService {
@Override
public List<MenuDto> queryAll(MenuQueryCriteria criteria, Boolean isQuery) throws Exception {
Sort sort = Sort.by(Sort.Direction.ASC, "menuSort");
if(isQuery){
if(Boolean.TRUE.equals(isQuery)){
criteria.setPidIsNull(true);
List<Field> fields = QueryHelp.getAllFields(criteria.getClass(), new ArrayList<>());
for (Field field : fields) {
Expand Down

0 comments on commit 6c75df5

Please sign in to comment.