diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java index c36bad9951..e405b6d13f 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java @@ -334,6 +334,9 @@ public class TestPlanCollectionMinderService { private static void setAssociateMap(TestPlanCollectionMinderEditDTO testPlanCollectionMinderEditDTO, Map> associateMap, TestPlanCollection testPlanCollection) { List associateDTOS = testPlanCollectionMinderEditDTO.getAssociateDTOS(); + if (CollectionUtils.isEmpty(associateDTOS)) { + return; + } for (TestPlanCollectionAssociateDTO associateDTO : associateDTOS) { String associateType = associateDTO.getAssociateType(); List baseCollectionAssociateRequests = associateMap.get(associateType);