mirror of
https://github.com/apache/cloudstack
synced 2026-08-31 09:08:00 +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
43ebb1c822
commit
fff763ef81
@ -812,7 +812,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