diff --git a/base/src/org/compiere/model/CalloutPayment.java b/base/src/org/compiere/model/CalloutPayment.java index e61a0f428c..e1395c07f4 100644 --- a/base/src/org/compiere/model/CalloutPayment.java +++ b/base/src/org/compiere/model/CalloutPayment.java @@ -271,7 +271,7 @@ public class CalloutPayment extends CalloutEngine } } // Order Waiting Payment (can only be SO) - if (C_Order_ID != 0 && !dt.isSOTrx()) + if (C_Order_ID != 0 && dt != null && !dt.isSOTrx()) return "PaymentDocTypeInvoiceInconsistent"; return "";