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

This commit is contained in:
kami 2023-06-19 23:23:05 +08:00 committed by GitHub
parent 906353bbaf
commit 5cbe170e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -672,6 +672,11 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatus> {
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();