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 <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-06-26 14:41:53 +01:00 committed by Konstantina Chremmou
parent 594db56b6a
commit 1e78d6964b

View File

@ -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));