From 1e78d6964b053a7ec5ec26b66f435d5a9cf728f1 Mon Sep 17 00:00:00 2001 From: Danilo Del Busso Date: Mon, 26 Jun 2023 14:41:53 +0100 Subject: [PATCH] CP-41573: Do not attempt problem reversion if `SolutionAction.Connection` is null Applies to newly added EUA presence problem Signed-off-by: Danilo Del Busso --- XenAdmin/Wizards/PatchingWizard/AutomatedUpdatesBasePage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XenAdmin/Wizards/PatchingWizard/AutomatedUpdatesBasePage.cs b/XenAdmin/Wizards/PatchingWizard/AutomatedUpdatesBasePage.cs index 42cb92fa4..5a88cc370 100644 --- a/XenAdmin/Wizards/PatchingWizard/AutomatedUpdatesBasePage.cs +++ b/XenAdmin/Wizards/PatchingWizard/AutomatedUpdatesBasePage.cs @@ -175,7 +175,7 @@ namespace XenAdmin.Wizards.PatchingWizard //add a revert pre-check action for this pool var curPool = pool; var problemsToRevert = PrecheckProblemsActuallyResolved.Where(a => - a.SolutionAction != null && Helpers.GetPoolOfOne(a.SolutionAction.Connection).Equals(curPool)).ToList(); + curPool.Equals(Helpers.GetPoolOfOne(a.SolutionAction?.Connection))).ToList(); if (problemsToRevert.Count > 0) finalActions.Add(new UnwindProblemsAction(problemsToRevert, pool.Connection));