mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-17 22:20:08 +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);
|
var update = Host.Connection.Resolve(updateRef);
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(UpdateUuid) || //automated mode, any update
|
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);
|
return new MasterIsPendingRestartHostProblem(this, pool);
|
||||||
}
|
}
|
||||||
|
@ -1820,6 +1820,7 @@ namespace XenAdmin.TabPages
|
|||||||
foreach (var updateRef in updateRefs)
|
foreach (var updateRef in updateRefs)
|
||||||
{
|
{
|
||||||
var update = host.Connection.Resolve(updateRef);
|
var update = host.Connection.Resolve(updateRef);
|
||||||
|
if (update != null)
|
||||||
warnings.Add(CreateWarningRow(host, update));
|
warnings.Add(CreateWarningRow(host, update));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user