From 7dc0598cc72057f22f0d2d3f649e201ab613b893 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 13 Jun 2024 18:50:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E8=A7=84=E5=88=92=E8=84=91=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan/service/TestPlanCollectionMinderService.java | 3 +++ 1 file changed, 3 insertions(+) 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);