mirror of https://github.com/apache/cloudstack.git
bug 8239: NPE while executing CreateSnapshotCmd
status 8239: resolved fixed
This commit is contained in:
parent
222c865975
commit
8ce576dde5
|
|
@ -197,7 +197,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
|
|||
|
||||
// on a per-domain basis, increment the count
|
||||
// FIXME: can this increment be done on the database side in a custom update statement?
|
||||
Account account = _accountDao.findById(accountId);
|
||||
Account account = _accountDao.findByIdIncludingRemoved(accountId);
|
||||
Long domainId = account.getDomainId();
|
||||
while (domainId != null) {
|
||||
_resourceCountDao.updateDomainCount(domainId, type, true, numToIncrement);
|
||||
|
|
|
|||
Loading…
Reference in New Issue