mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-289959: Add null checks when resolving the updates which require reboot
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
171284ff34
commit
5ad2aa302e
@ -70,7 +70,7 @@ namespace XenAdmin.Diagnostics.Checks
|
||||
var update = Host.Connection.Resolve(updateRef);
|
||||
|
||||
if (string.IsNullOrEmpty(UpdateUuid) || //automated mode, any update
|
||||
string.Equals(update.uuid, UpdateUuid, System.StringComparison.InvariantCultureIgnoreCase)) //normal mode the given update
|
||||
(update != null && string.Equals(update.uuid, UpdateUuid, System.StringComparison.InvariantCultureIgnoreCase))) //normal mode the given update
|
||||
{
|
||||
return new MasterIsPendingRestartHostProblem(this, pool);
|
||||
}
|
||||
|
@ -1820,7 +1820,8 @@ namespace XenAdmin.TabPages
|
||||
foreach (var updateRef in updateRefs)
|
||||
{
|
||||
var update = host.Connection.Resolve(updateRef);
|
||||
warnings.Add(CreateWarningRow(host, update));
|
||||
if (update != null)
|
||||
warnings.Add(CreateWarningRow(host, update));
|
||||
}
|
||||
|
||||
// For Toolstack restart, legacy code has to be used to determine this - pool_patches are still populated for backward compatibility
|
||||
|
Loading…
Reference in New Issue
Block a user