From 4b2c5734dbd4de7957d0b0d18a674bec7db2e66d Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 17 Oct 2024 14:01:41 +0530 Subject: [PATCH] fix npe Signed-off-by: Abhishek Kumar --- engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java b/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java index ee87b26ffb7..308fd2c6807 100644 --- a/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java +++ b/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java @@ -1593,9 +1593,7 @@ public class HostDaoImpl extends GenericDaoBase implements HostDao sc.setParameters("clusterId", clusterId); } if (CollectionUtils.isNotEmpty(hypervisorTypes)) { - sb.and().op(sb.entity().getHypervisorType(), SearchCriteria.Op.NULL); sc.setParameters("hypervisorTypes", hypervisorTypes.toArray()); - sb.cp(); } sc.setParameters("resourceState", resourceStates.toArray()); sc.setParameters("type", types.toArray());