mirror of https://github.com/apache/cloudstack.git
fixed compile warning
This commit is contained in:
parent
dbc0abfa69
commit
89b39d6a1a
|
|
@ -2089,7 +2089,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
}
|
||||
|
||||
// Make sure that there are no user vms in the network that are not Expunged/Error
|
||||
List<UserVmVO> userVms = _userVmDao.listByNetworkIdAndStates(networkId, null);
|
||||
List<UserVmVO> userVms = _userVmDao.listByNetworkIdAndStates(networkId);
|
||||
|
||||
for (UserVmVO vm : userVms) {
|
||||
if (!(vm.getState() == VirtualMachine.State.Error || (vm.getState() == VirtualMachine.State.Expunging && vm.getRemoved() != null))) {
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ public class UserVmDaoImpl extends GenericDaoBase<UserVmVO, Long> implements Use
|
|||
}
|
||||
|
||||
SearchCriteria<UserVmVO> sc = UserVmSearch.create();
|
||||
if (states != null) {
|
||||
if (states != null && states.length != 0) {
|
||||
sc.setParameters("states", (Object[]) states);
|
||||
}
|
||||
sc.setJoinParameters("nicSearch", "networkId", networkId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue