This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 2be45c218650c8bb7159f8d846d4e59768aeb357
Author: Rohit Yadav <rohit.ya...@shapeblue.com>
AuthorDate: Mon Apr 30 17:35:01 2018 +0530

    solidfire: fix potential NPE
    
    Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>
---
 .../cloudstack/storage/datastore/provider/SolidFireHostListener.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/provider/SolidFireHostListener.java
 
b/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/provider/SolidFireHostListener.java
index f9c27e9..f2a4b79 100644
--- 
a/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/provider/SolidFireHostListener.java
+++ 
b/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/provider/SolidFireHostListener.java
@@ -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) {

-- 
To stop receiving notification emails like this one, please contact
ro...@apache.org.

Reply via email to