From 15eece97a589012cb705b3bbd96b188cb9f4eceb Mon Sep 17 00:00:00 2001 From: Brijesh Khandelwal Date: Thu, 27 Feb 2020 20:50:07 +0530 Subject: [PATCH] One more change. --- .../CoordinatorService/src/RepairManagerHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs b/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs index ebdabb1..4def4fd 100644 --- a/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs +++ b/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs @@ -558,7 +558,7 @@ internal async Task PrepareRepairTasks(CancellationToken cancellationToken) if (completedTasks.Any()) { RepairTask lastCompletedTask = completedTasks.Aggregate((curMax, task) => (task.CompletedTimestamp > curMax.CompletedTimestamp ? task : curMax)); - timePastAfterCompletedTask = DateTime.UtcNow - lastCompletedTask.CompletedTimestamp; + timePastAfterCompletedTask = DateTime.UtcNow - lastCompletedTask?.CompletedTimestamp; }