From 36f1172097875fc5b0e1c3bed2a7f666ae6870d5 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 25 Nov 2024 10:53:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=BC=BA=E9=99=B7=E6=9C=AC=E5=9C=B0=E5=92=8C=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=B9=B3=E5=8F=B0=E7=BB=9F=E8=AE=A1=E6=9C=AA=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/dashboard/service/DashboardService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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);