diff --git a/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java b/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java index ea93beacb9..cd6cdfdd9a 100644 --- a/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java @@ -14,6 +14,7 @@ import io.metersphere.track.dto.DemandDTO; import io.metersphere.track.issue.domain.PlatformUser; import io.metersphere.track.request.testcase.IssuesRequest; import io.metersphere.track.request.testcase.IssuesUpdateRequest; +import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; @@ -157,8 +158,11 @@ public class TapdPlatform extends AbstractIssuePlatform { MSException.throwException("未关联Tapd 项目ID"); } - List PlatformUsers = issuesRequest.getTapdUsers(); - String usersStr = String.join(";", PlatformUsers); + String usersStr = ""; + List platformUsers = issuesRequest.getTapdUsers(); + if (CollectionUtils.isNotEmpty(platformUsers)) { + usersStr = String.join(";", platformUsers); + } String username = SessionUtils.getUser().getName();