mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix npe
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
ad4c56a11f
commit
4b2c5734db
@ -1593,9 +1593,7 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> 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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user