[Bug] [Master] Fix complementListDate will throw IndexOutOfBoundsException (#14361)

This commit is contained in:
kami 2023-06-19 23:23:05 +08:00 committed by zhuangchong
parent 64e81c0e83
commit a06f5ad7ad
1 changed files with 5 additions and 0 deletions

View File

@ -605,6 +605,11 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatue> {
Date scheduleDate = processInstance.getScheduleTime();
if (scheduleDate == null) {
if (CollectionUtils.isEmpty(complementListDate)) {
log.info("complementListDate is empty, process complement end. process id:{}", processInstance.getId());
return true;
}
scheduleDate = complementListDate.get(0);
} else if (processInstance.getState().isFinished()) {
endProcess();