fix bug:npe

This commit is contained in:
陈维伟 2023-09-16 16:13:38 +08:00
parent 189e1ffa98
commit 712cfa0b86

View File

@ -122,7 +122,7 @@ public class PermissionGroupImpl implements PermissionGroupService {
.in(SaasPgroupPermissionRelation::getGroupId, groupIds)
.eq(BaseEntity::getIsDelete, TableIsDeleteEnum.NORMAL.value)
.list();
List<PermissionPointTreeNode> feature = null;
List<PermissionPointTreeNode> feature = new ArrayList<>();
if (CollectionUtils.isNotEmpty(permissionList)) {
// 查询featureCode
feature = featureService.listNodesByIds(permissionList.stream().map(SaasPgroupPermissionRelation::getFeatureId).collect(Collectors.toList()));