fix(测试跟踪): 测试计划列表偶现报错

--bug=1011708 --user=陈建星 【测试跟踪】-gitHub#11309  测试计划翻页偶现报错 https://www.tapd.cn/55049933/s/1128053
This commit is contained in:
chenjianxing 2022-03-31 13:42:27 +08:00 committed by 刘瑞斌
parent 9dab15f039
commit 63ea53482d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {