CA-118787: Assign priorities page on HA Wizard: Try to avoid ArgumentNullException on removing rows by checking for null values.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2013-10-17 15:37:03 +01:00
parent 1ea75bc8ad
commit 2c050458a7

View File

@ -372,7 +372,8 @@ namespace XenAdmin.Wizards.HAWizard_Pages
Program.AssertOnEventThread();
var row = findItemFromVM(vm);
dataGridViewVms.Rows.Remove(row);
if (row != null)
dataGridViewVms.Rows.Remove(row);
}
/// <summary>