mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Fixed NPE if addVPNUser fails because it was unable to reach the domR.
This commit is contained in:
parent
89c717703f
commit
bd5f1a7de6
@ -2851,6 +2851,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
||||
EventUtils.saveEvent(userId, account.getId(), EventTypes.EVENT_VPN_USER_ADD, "Added a VPN user for account: " + account.getAccountName() + " username= " + cmd.getUserName());
|
||||
} else {
|
||||
EventUtils.saveEvent(userId, account.getId(), EventVO.LEVEL_ERROR, EventTypes.EVENT_VPN_USER_ADD, "Unable to add VPN user for account: ", account.getAccountName() + " username= " + cmd.getUserName());
|
||||
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, "Unable to add VPN user for account: "+ account.getAccountName() + " username= " + cmd.getUserName());
|
||||
}
|
||||
return user;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user