IDEMPIERE-3223 NPE when choose document type of sale order
This commit is contained in:
parent
f4c6b6f89c
commit
ebe2d32301
|
@ -84,7 +84,7 @@ public class CalloutOrder extends CalloutEngine
|
||||||
int oldAD_Sequence_ID = 0;
|
int oldAD_Sequence_ID = 0;
|
||||||
|
|
||||||
// Get old AD_SeqNo for comparison
|
// Get old AD_SeqNo for comparison
|
||||||
if (!newDocNo && oldC_DocType_ID.intValue() != 0)
|
if (!newDocNo && oldC_DocType_ID != null && oldC_DocType_ID.intValue() != 0)
|
||||||
{
|
{
|
||||||
pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, oldC_DocType_ID.intValue());
|
pstmt.setInt(1, oldC_DocType_ID.intValue());
|
||||||
|
|
Loading…
Reference in New Issue