CA-250234 - XenCenter hit with NullReferenceException at HAPage

More robust check for null connection

Signed-off-by: Letsibogo Ramadi <letsibogo.ramadi@citrix.com>
This commit is contained in:
Letsibogo Ramadi 2017-05-10 16:40:12 +01:00
parent 63cd499cbd
commit adde3dc044

View File

@ -198,7 +198,7 @@ namespace XenAdmin.TabPages
else
{
//CA-250234 no need to rebuild HA page if we lost connection to the pool
if (pool.Connection == null)
if (pool.Connection == null || pool.Connection.Session == null || !pool.Connection.IsConnected)
return;
// Generate the tab contents depending on what XenObject we're displaying