IDEMPIERE-3145:Material Receipt: Create Lines From -> NPE

This commit is contained in:
hieplq 2016-08-02 17:36:25 +07:00
parent 666fbe011e
commit 248d0fd91d
1 changed files with 2 additions and 1 deletions

View File

@ -299,7 +299,8 @@ public class WCreateFromShipmentUI extends CreateFromShipment implements EventLi
//sameWarehouseCb //sameWarehouseCb
else if (e.getTarget().equals(sameWarehouseCb)) else if (e.getTarget().equals(sameWarehouseCb))
{ {
initBPOrderDetails(((Integer)bPartnerField.getValue()).intValue(), false); int bpId = bPartnerField.getValue() == null?0:((Integer)bPartnerField.getValue()).intValue();
initBPOrderDetails(bpId, false);
} }
else if (e.getTarget().equals(upcField.getComponent())) else if (e.getTarget().equals(upcField.getComponent()))
{ {