Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fix WorkflowRepairService if the workflow is removed
Browse files Browse the repository at this point in the history
`verifyAndRepairWorkflowTasks` might be called when the workflow has already been removed.
  • Loading branch information
jun-he committed Apr 23, 2021
1 parent 98c75e9 commit c06d8ba
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -93,7 +93,9 @@ public boolean verifyAndRepairWorkflow(String workflowId, boolean includeTasks)
*/
public void verifyAndRepairWorkflowTasks(String workflowId) {
Workflow workflow = executionDAO.getWorkflow(workflowId, true);
workflow.getTasks().forEach(task -> verifyAndRepairTask(task));
if (workflow != null) {
workflow.getTasks().forEach(task -> verifyAndRepairTask(task));
}
}

/**
Expand Down

0 comments on commit c06d8ba

Please sign in to comment.