From 8f479b9d9e587efedfe40db033d3a15274816d00 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 11 Apr 2007 10:07:59 +0000 Subject: [PATCH] BF [ 1698284 ] NPE in Payment window --- base/src/org/compiere/model/CalloutPayment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "";