From b825aa7a4eba2730a5425245d6d2596513a5feeb Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 18 Nov 2024 17:53:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=8E=B7=E5=8F=96=E9=81=97=E7=95=99=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E9=9B=86=E6=88=90=E9=85=8D=E7=BD=AE=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/bug/service/BugCommonService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java index 42dad2db11..2b19898836 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java @@ -38,6 +38,9 @@ import java.util.Map; import java.util.Optional; import java.util.stream.Collectors; +/** + * @author song-cc-rock + */ @Service @Transactional(rollbackFor = Exception.class) public class BugCommonService { @@ -225,6 +228,9 @@ public class BugCommonService { */ public String getPlatformHandlerUser(String projectId, String currentUserId, String currentOrgId) { ServiceIntegration serviceIntegration = projectApplicationService.getPlatformServiceIntegrationWithSyncOrDemand(projectId, true); + if (serviceIntegration == null) { + return null; + } String platformUserName = userPlatformAccountService.getPlatformUserName(currentUserId, currentOrgId, serviceIntegration.getPluginId()); List headerHandlerOption = getHeaderHandlerOption(projectId); if (StringUtils.isNotBlank(platformUserName)) {