From c13b329df7a2fdd9e0fc1bfbcd4a00757aea3bc8 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Tue, 21 Jul 2015 12:51:07 +0530 Subject: [PATCH] quota: fix quota credits api, NPE Signed-off-by: Rohit Yadav --- .../src/org/apache/cloudstack/quota/QuotaServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java b/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java index 160f0610ff9..567779196fc 100644 --- a/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java +++ b/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java @@ -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() {