Commit b87e0bb2 by Nilu

stripe data pull batch null pointer fix

parent 7bae8df8
...@@ -52,6 +52,12 @@ public class PullStripeDataBatch extends ORMBatch ...@@ -52,6 +52,12 @@ public class PullStripeDataBatch extends ORMBatch
for (Plan plan : plansList) for (Plan plan : plansList)
{ {
if(plan.getAmount() == null)
{
// tired plans have null value for amount: performa is not using tired plans
continue;
}
Filter<PaymentPlan> filter = PaymentPlan.SearchByAll().andStripeReference(new EqualsFilter<>(plan.getId())); Filter<PaymentPlan> filter = PaymentPlan.SearchByAll().andStripeReference(new EqualsFilter<>(plan.getId()));
List<PaymentPlan> activePlans = (List<PaymentPlan>) CollectionFilter.filter(Arrays.asList(paymentPlans) , filter); List<PaymentPlan> activePlans = (List<PaymentPlan>) CollectionFilter.filter(Arrays.asList(paymentPlans) , filter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment