From 1c1ec0e851e6b7896c8b3289a5ab310b33097ddc Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 11 May 2021 16:50:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9C=BA=E6=99=AF=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E7=8E=AF=E5=A2=83=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/ApiAutomationService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index df4ee43776..7b88f07940 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1013,6 +1013,7 @@ public class ApiAutomationService { isEnv = false; } else { Set projectIds = apiScenarioEnv.getProjectIds(); + projectIds.remove(null); if (CollectionUtils.isNotEmpty(envMap.keySet())) { for (String id : projectIds) { Project project = projectMapper.selectByPrimaryKey(id);