[Fix-14828][master] check task id not null to avoid NPE (#14829)
Co-authored-by: eye <eye.gu@aloudata.com> Co-authored-by: Aaron Wang <wangweirao16@gmail.com> Co-authored-by: caishunfeng <caishunfeng2021@gmail.com>
This commit is contained in:
parent
6e5870d711
commit
33525a17c3
|
|
@ -1897,7 +1897,7 @@ public class WorkflowExecuteRunnable implements IWorkflowExecuteRunnable {
|
|||
TaskInstance task;
|
||||
while ((task = readyToSubmitTaskQueue.peek()) != null) {
|
||||
// stop tasks which is retrying if forced success happens
|
||||
if (task.taskCanRetry()) {
|
||||
if (task.getId() != null && task.taskCanRetry()) {
|
||||
TaskInstance retryTask = taskInstanceDao.queryById(task.getId());
|
||||
if (retryTask != null && retryTask.getState().isForceSuccess()) {
|
||||
task.setState(retryTask.getState());
|
||||
|
|
|
|||
Loading…
Reference in New Issue