diff --git a/backend/src/main/java/io/dataease/service/dataset/PermissionService.java b/backend/src/main/java/io/dataease/service/dataset/PermissionService.java index 9199b275ea..35700b8fd8 100644 --- a/backend/src/main/java/io/dataease/service/dataset/PermissionService.java +++ b/backend/src/main/java/io/dataease/service/dataset/PermissionService.java @@ -239,7 +239,7 @@ public class PermissionService { request.setDatasetId(datasetId); request.setAuthTargetType("dept"); List items = (List)columnPermissionService.authObjs(request); - if(items.stream().map(Item::getId).collect(Collectors.toList()).contains(deptId)){ + if(CollectionUtils.isNotEmpty(items) && items.stream().map(Item::getId).collect(Collectors.toList()).contains(deptId)){ dataSetColumnPermissionsDTO.setAuthTargetIds(Collections.singletonList(deptId)); dataSetColumnPermissionsDTO.setAuthTargetType("dept"); List deptColumnPermissionsDTOS = new ArrayList<>();