mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
For Vm snapshot delete event, check for null size and set it as zero
This commit is contained in:
parent
438f90a262
commit
30ab4d3d66
@ -1726,7 +1726,8 @@ public class UsageManagerImpl extends ManagerBase implements UsageManager, Runna
|
||||
Long offeringId = event.getOfferingId();
|
||||
Long zoneId = event.getZoneId();
|
||||
Long accountId = event.getAccountId();
|
||||
long size = event.getSize();
|
||||
//Size could be null for VM snapshot delete events
|
||||
long size = (event.getSize() == null) ? 0 : event.getSize();
|
||||
Date created = event.getCreateDate();
|
||||
Account acct = _accountDao.findByIdIncludingRemoved(event.getAccountId());
|
||||
Long domainId = acct.getDomainId();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user