Skip to content

Commit 2be45c2

Browse files
committed
solidfire: fix potential NPE
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 314caff commit 2be45c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/provider/SolidFireHostListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private void handleXenServer(long clusterId, long hostId, long storagePoolId) {
152152
}
153153

154154
private void handleVMware(HostVO host, boolean add, ModifyTargetsCommand.TargetTypeToRemove targetTypeToRemove) {
155-
if (HypervisorType.VMware.equals(host.getHypervisorType())) {
155+
if (host != null && HypervisorType.VMware.equals(host.getHypervisorType())) {
156156
List<StoragePoolVO> storagePools = _storagePoolDao.findPoolsByProvider(SolidFireUtil.PROVIDER_NAME);
157157

158158
if (storagePools != null && storagePools.size() > 0) {

0 commit comments

Comments
 (0)