From 248d0fd91d2da863813ca11b073722400f245c18 Mon Sep 17 00:00:00 2001 From: hieplq Date: Tue, 2 Aug 2016 17:36:25 +0700 Subject: [PATCH] IDEMPIERE-3145:Material Receipt: Create Lines From -> NPE --- .../org/adempiere/webui/apps/form/WCreateFromShipmentUI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromShipmentUI.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromShipmentUI.java index 58aea64731..c59a3f5914 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromShipmentUI.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromShipmentUI.java @@ -299,7 +299,8 @@ public class WCreateFromShipmentUI extends CreateFromShipment implements EventLi //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())) {