CP-9365: XenCenter work for HVM linux support

-Fixing issue found by the reviewer: null reference exception when the VM restarts
This commit is contained in:
Gabor Apati-Nagy 2014-09-09 15:46:26 +01:00
parent 6d652ac135
commit c64485adfd

View File

@ -483,6 +483,7 @@ namespace XenAdmin.ConsoleView
this.guestMetrics.PropertyChanged -= guestMetrics_PropertyChanged;
this.guestMetrics = newGuestMetrics;
if (this.guestMetrics != null)
guestMetrics.PropertyChanged += guestMetrics_PropertyChanged;
EnableRDPIfCapable();