mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CID-1233085: Fix potential NPE in AccountManagerImpl from VpcManagerImpl
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
33a6640c04
commit
c27dd6293e
@ -1421,7 +1421,9 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
|
||||
|
||||
@Override
|
||||
public List<? extends Vpc> getVpcsForAccount(long accountId) {
|
||||
return _vpcDao.listByAccountId(accountId);
|
||||
List<Vpc> vpcs = new ArrayList<Vpc>();
|
||||
vpcs.addAll(_vpcDao.listByAccountId(accountId));
|
||||
return vpcs;
|
||||
}
|
||||
|
||||
public boolean cleanupVpcResources(long vpcId, Account caller, long callerUserId) throws ResourceUnavailableException, ConcurrentOperationException {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user