quota: fix quota credits api, NPE

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-07-21 12:51:07 +05:30
parent c99346c30e
commit c13b329df7
1 changed files with 1 additions and 2 deletions

View File

@ -233,8 +233,7 @@ public class QuotaServiceImpl extends ManagerBase implements QuotaService, Confi
throw new InvalidParameterValueException("Incorrect deposit date: " + adjustedStartDate + " there are balance entries after this date");
}
_quotaDBUtils.addQuotaCredits(accountId, domainId, amount, updatedBy, adjustedStartDate);
return null;
return _quotaDBUtils.addQuotaCredits(accountId, domainId, amount, updatedBy, adjustedStartDate);
}
public TimeZone getUsageTimezone() {