diff --git a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java index e214f43988..af7361cd17 100644 --- a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java +++ b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java @@ -1305,9 +1305,13 @@ public class DashboardService { } SethandleUsers = new HashSet<>(); String localHandleUser = hasHandleUser ? userId : null; - handleUsers.add(localHandleUser); + if (StringUtils.isNotBlank(localHandleUser)) { + handleUsers.add(localHandleUser); + } String handleUser = hasHandleUser ? handleUserId : null; - handleUsers.add(handleUser); + if (StringUtils.isNotBlank(handleUser)) { + handleUsers.add(handleUser); + } String createUser = hasCreateUser ? userId : null; String platformName = projectApplicationService.getPlatformName(projectId); Set platforms = getPlatforms(platformName);