bug 8239: NPE while executing CreateSnapshotCmd

status 8239: resolved fixed
This commit is contained in:
Murali Reddy 2011-02-02 13:10:07 -08:00
parent 222c865975
commit 8ce576dde5
1 changed files with 1 additions and 1 deletions

View File

@ -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);