From 921064745dfdcc466e59329106dd6b21e713bc8e Mon Sep 17 00:00:00 2001 From: hieplq Date: Fri, 9 Jan 2015 11:15:25 +0700 Subject: [PATCH] IDEMPIERE-2391:none tax make callout CalloutInvoiceBatch rise NPE when calculator --- .../src/org/compiere/model/CalloutInvoiceBatch.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java b/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java index 3def446db6..08414017be 100644 --- a/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java +++ b/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java @@ -387,6 +387,8 @@ public class CalloutInvoiceBatch extends CalloutEngine } } + if (TaxAmt == null) + TaxAmt = BigDecimal.ZERO; // if (IsTaxIncluded) {