mirror of https://github.com/apache/cloudstack.git
solidfire: fix potential NPE
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
314caffcd7
commit
2be45c2186
|
|
@ -152,7 +152,7 @@ public class SolidFireHostListener implements HypervisorHostListener {
|
|||
}
|
||||
|
||||
private void handleVMware(HostVO host, boolean add, ModifyTargetsCommand.TargetTypeToRemove targetTypeToRemove) {
|
||||
if (HypervisorType.VMware.equals(host.getHypervisorType())) {
|
||||
if (host != null && HypervisorType.VMware.equals(host.getHypervisorType())) {
|
||||
List<StoragePoolVO> storagePools = _storagePoolDao.findPoolsByProvider(SolidFireUtil.PROVIDER_NAME);
|
||||
|
||||
if (storagePools != null && storagePools.size() > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue