mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Nuage VSP : Fix for NPE while cleaning up account when there are still resources belonging to that account
This commit is contained in:
parent
4b6179940d
commit
d862a09771
@ -109,7 +109,9 @@ public class NuageVspEntityBuilder {
|
||||
vspNetworkBuilder.domain(vspDomain);
|
||||
|
||||
AccountVO account = _accountDao.findById(network.getAccountId());
|
||||
vspNetworkBuilder.accountUuid(account.getUuid()).accountName(account.getAccountName());
|
||||
if (account != null) {
|
||||
vspNetworkBuilder.accountUuid(account.getUuid()).accountName(account.getAccountName());
|
||||
}
|
||||
|
||||
NetworkOfferingVO networkOffering = _networkOfferingDao.findById(network.getNetworkOfferingId());
|
||||
vspNetworkBuilder.egressDefaultPolicy(networkOffering.getEgressDefaultPolicy());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user