mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Added null reference check in Upload Page.
This commit is contained in:
parent
2720d1bc23
commit
037acfc889
@ -377,7 +377,10 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
if (action is DownloadAndUnzipXenServerPatchAction)
|
||||
{
|
||||
SelectedNewPatch = ((DownloadAndUnzipXenServerPatchAction)action).PatchPath;
|
||||
AllDownloadedPatches.Add((SelectedUpdateAlert as XenServerPatchAlert).Patch.Uuid, SelectedNewPatch);
|
||||
if (SelectedUpdateAlert is XenServerPatchAlert && (SelectedUpdateAlert as XenServerPatchAlert).Patch != null)
|
||||
{
|
||||
AllDownloadedPatches.Add((SelectedUpdateAlert as XenServerPatchAlert).Patch.Uuid, SelectedNewPatch);
|
||||
}
|
||||
_patch = null;
|
||||
PrepareUploadActions();
|
||||
TryUploading();
|
||||
|
Loading…
Reference in New Issue
Block a user