mirror of
https://github.com/apache/cloudstack
synced 2026-08-25 23:56:52 +00:00
CLOUDSTACK-3514: [Automation] Vmware - Failed to download default template for first zone
Description:
Fixing reference to null object.
This commit is contained in:
parent
13c1c6291c
commit
e18ca0117d
@ -811,7 +811,9 @@ public class ResourceLimitManagerImpl extends ManagerBase implements ResourceLim
|
||||
_resourceCountDao.lockRows(sc, null, true);
|
||||
|
||||
ResourceCountVO accountRC = _resourceCountDao.findByOwnerAndType(accountId, ResourceOwnerType.Account, type);
|
||||
long oldCount = accountRC.getCount();
|
||||
long oldCount = 0;
|
||||
if (accountRC != null)
|
||||
oldCount = accountRC.getCount();
|
||||
|
||||
if (type == Resource.ResourceType.user_vm) {
|
||||
newCount = _userVmDao.countAllocatedVMsForAccount(accountId);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user