mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8592: code review fix for empty check on lists
This commit is contained in:
parent
363cd8c9d8
commit
ecd6b2084e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue