Bug 14482 - When user tries to delete an acquired Ip address ,right after this is successful, UI calls listRemoteAccessVpns() which results in java.lang.NullPointerException.User is presented with "Internal error executing command" error

Reviewed-By: Sheng

Changes:
- Added the null check for account object.
This commit is contained in:
prachi 2012-03-26 14:29:17 -07:00
parent 749f957662
commit 909ec57327
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ public class DomainChecker extends AdapterBase implements SecurityChecker {
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) {
Account account = _accountDao.findById(entity.getAccountId());
if (account.getType() == Account.ACCOUNT_TYPE_PROJECT) {
if (account != null && account.getType() == Account.ACCOUNT_TYPE_PROJECT) {
//only project owner can delete/modify the project
if (accessType != null && accessType == AccessType.ModifyProject) {
if (!_projectMgr.canModifyProjectAccount(caller, account.getId())) {