From abaf749dc9d3abd97a60a2d95b75808957495b8a Mon Sep 17 00:00:00 2001 From: Henrik Linde Date: Fri, 9 Aug 2024 12:47:01 +0200 Subject: [PATCH] Fix NullPointerException for completed instances. --- src/Services/Storage/Implementation/InstanceRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Storage/Implementation/InstanceRepository.cs b/src/Services/Storage/Implementation/InstanceRepository.cs index cd06853..7e38a5a 100644 --- a/src/Services/Storage/Implementation/InstanceRepository.cs +++ b/src/Services/Storage/Implementation/InstanceRepository.cs @@ -201,7 +201,7 @@ public async Task GetInstancesFromQuery(Dictionary !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);