CLOUDSTACK-8592: code review fix for empty check on lists

This commit is contained in:
Abhinandan Prateek 2015-11-16 09:52:00 +05:30
parent 363cd8c9d8
commit ecd6b2084e
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public class QuotaServiceImpl extends ManagerBase implements QuotaService, Confi
if (_domainDao.isChildDomain(caller.getDomainId(), domainId)) {
Filter filter = new Filter(AccountVO.class, "id", Boolean.FALSE, null, null);
List<AccountVO> accounts = _accountDao.listAccounts(accountName, domainId, filter);
if (accounts.size() > 0) {
if (!accounts.isEmpty()) {
userAccount = accounts.get(0);
}
if (userAccount != null) {