mirror of https://github.com/apache/cloudstack.git
vmware: fix potential NPE when memory hotplug capability is checked (#3362)
This fixes potential NPE case when memory hotpluggability is checked based on the guest OS descriptor. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
f6f381fc68
commit
8c387f9de6
|
|
@ -3281,7 +3281,7 @@ public class VirtualMachineMO extends BaseMO {
|
|||
virtualHardwareVersion = getVirtualHardwareVersion();
|
||||
|
||||
// Check if guest operating system supports memory hotadd
|
||||
if (guestOsDescriptor.isSupportsMemoryHotAdd()) {
|
||||
if (guestOsDescriptor != null && guestOsDescriptor.isSupportsMemoryHotAdd()) {
|
||||
guestOsSupportsMemoryHotAdd = true;
|
||||
}
|
||||
// Check if virtual machine is using hardware version 7 or later.
|
||||
|
|
|
|||
Loading…
Reference in New Issue