mirror of https://github.com/apache/cloudstack.git
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:
parent
749f957662
commit
909ec57327
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue