IDEMPIERE-3223 NPE when choose document type of sale order

This commit is contained in:
Redhuan D. Oon 2016-10-26 13:44:40 +02:00
parent f4c6b6f89c
commit ebe2d32301
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class CalloutOrder extends CalloutEngine
int oldAD_Sequence_ID = 0;
// 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.setInt(1, oldC_DocType_ID.intValue());