mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
[CA-115256] Add null check as suggested by code review
This commit is contained in:
parent
75464110de
commit
75bb8fa8f0
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user