CLOUDSTACK-7164: fix NPE

This commit is contained in:
Edison Su 2014-07-24 17:01:23 -07:00
parent 165618ac9a
commit 2f832fddff
1 changed files with 3 additions and 1 deletions

View File

@ -1406,7 +1406,9 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
AccountVO account = _accountDao.findById(accountId);
if (account == null || account.getRemoved() != null) {
s_logger.info("The account:" + account.getAccountName() + " is already removed");
if (account != null) {
s_logger.info("The account:" + account.getAccountName() + " is already removed");
}
return true;
}