CA-326161: Check for null before accessing the ManualTextInstructions

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2019-09-01 15:12:50 +01:00 committed by Mihaela Stoica
parent f46c9ea8d6
commit 629e2f641a

View File

@ -126,7 +126,7 @@ namespace XenAdmin.Wizards.PatchingWizard
sb.AppendLine(string.Format(Messages.PATCHINGWIZARD_SINGLEUPDATE_SUCCESS_ONE, GetUpdateName())).AppendLine();
if (!IsAutomaticMode && ManualTextInstructions.ContainsKey(pool))
if (!IsAutomaticMode && ManualTextInstructions != null && ManualTextInstructions.ContainsKey(pool))
sb.Append(ManualTextInstructions[pool]).AppendLine();
return sb.ToString();