[CA-115256] Add null check as suggested by code review

This commit is contained in:
Stephen Turner 2014-04-16 09:13:20 +01:00
parent 75464110de
commit 75bb8fa8f0
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ namespace XenAdmin.Dialogs
public bool HelperUrlRequired public bool HelperUrlRequired
{ {
get { return Helpers.ClearwaterOrGreater(XenObject.Connection); } // CA-115256 get { return XenObject == null ? false : Helpers.ClearwaterOrGreater(XenObject.Connection); } // CA-115256
} }
public Status RowStatus public Status RowStatus

View File

@ -200,7 +200,7 @@ namespace XenAdmin.Dialogs
Program.Invoke(this, delegate Program.Invoke(this, delegate
{ {
LicenseDataGridViewRow lRow = row as LicenseDataGridViewRow; LicenseDataGridViewRow lRow = row as LicenseDataGridViewRow;
if(lRow == null) if(lRow == null || lRow.XenObject == null)
return; return;
summaryPanel.Title = lRow.XenObject.Name; summaryPanel.Title = lRow.XenObject.Name;