IDEMPIERE-1622 - NPE when switch field in "receipt create lines from"

This commit is contained in:
hieplq 2013-12-11 16:51:42 +07:00
parent 1d1b72c2f1
commit edbcd9d83b
1 changed files with 5 additions and 1 deletions

View File

@ -367,7 +367,11 @@ public class WCreateFromShipmentUI extends CreateFromShipment implements EventLi
// BPartner - load Order/Invoice/Shipment
if (e.getPropertyName().equals("C_BPartner_ID"))
{
int C_BPartner_ID = ((Integer)e.getNewValue()).intValue();
int C_BPartner_ID = 0;
if (e.getNewValue() != null){
C_BPartner_ID = ((Integer)e.getNewValue()).intValue();
}
initBPOrderDetails (C_BPartner_ID, true);
}
window.tableChanged(null);