From dedd91d77e3b66bc3c457b695f007c955ebeedc3 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 31 Mar 2022 13:42:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=88=97=E8=A1=A8=E5=81=B6?= =?UTF-8?q?=E7=8E=B0=E6=8A=A5=E9=94=99=20--bug=3D1011708=20--user=3D?= =?UTF-8?q?=E9=99=88=E5=BB=BA=E6=98=9F=20=E3=80=90=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=B7=9F=E8=B8=AA=E3=80=91-gitHub#11309=20=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=AE=A1=E5=88=92=E7=BF=BB=E9=A1=B5=E5=81=B6=E7=8E=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20https://www.tapd.cn/55049933/s/1128053?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/track/service/TestPlanService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 5d1668db8d..8f8c043501 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -2065,7 +2065,7 @@ public class TestPlanService { CronTrigger trigger = TriggerBuilder.newTrigger().withIdentity("Caclulate Date").withSchedule(CronScheduleBuilder.cronSchedule(cron)).build(); Date time0 = trigger.getStartTime(); Date time1 = trigger.getFireTimeAfter(time0); - return time1.getTime(); + return time1 == null ? 0 : time1.getTime(); } public ScheduleDTO updateTestPlanBySchedule(ScheduleInfoRequest request) {