Skip to content

Commit

Permalink
Fix NullPointerException for completed instances. (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrili authored Aug 9, 2024
1 parent ad6047a commit 26ff66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Storage/Implementation/InstanceRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public async Task<InstanceQueryResponse> GetInstancesFromQuery(Dictionary<string
}
if (queryParams.ContainsKey("process.currentTask"))
{
instances.RemoveAll(i => !queryParams["process.currentTask"].Contains(i.Process.CurrentTask.ElementId));
instances.RemoveAll(i => !queryParams["process.currentTask"].Contains(i.Process.CurrentTask?.ElementId));
}

instances.RemoveAll(i => i.Status.IsHardDeleted == true);
Expand Down

0 comments on commit 26ff66b

Please sign in to comment.