From 0d60fc8ac80bfeddc8d604d3240048eb6edb14e3 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 13 Jan 2022 16:58:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=9C=BA=E6=99=AF=E7=94=A8=E4=BE=8B=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=8E=AF=E5=A2=83=E6=89=A7=E8=A1=8C=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/track/service/TestPlanScenarioCaseService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanScenarioCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanScenarioCaseService.java index b9e0056181..21684b0fe7 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanScenarioCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanScenarioCaseService.java @@ -214,6 +214,7 @@ public class TestPlanScenarioCaseService { } public void setScenarioEnv(List planScenarioIds, RunModeConfigDTO runModeConfig) { + if (CollectionUtils.isEmpty(planScenarioIds)) return; SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH); TestPlanApiScenarioExample testPlanApiScenarioExample = new TestPlanApiScenarioExample(); testPlanApiScenarioExample.createCriteria().andIdIn(planScenarioIds);