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

Commit

Permalink
#2926 added a null check for TaskModel
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindanr committed Apr 20, 2022
1 parent 4ad982a commit 8d5eee3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ public List<Task> getTasksForWorkflow(String workflowId) {

public TaskModel getTaskModel(String taskId) {
TaskModel taskModel = getTaskFromDatastore(taskId);
populateTaskData(taskModel);
if (taskModel != null) {
populateTaskData(taskModel);
}
return taskModel;
}

Expand Down

0 comments on commit 8d5eee3

Please sign in to comment.