From 7067b7b2f7e14011a55ea9686899c23b1a9df5d2 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Thu, 21 May 2009 17:57:56 +0000 Subject: [PATCH] Can't create shipments with product type service https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2794909&group_id=176962 Bug introducing in BF[ 2557978 ] Thank a lot Low, I implemented your catch kind regards Victor Perez www.e-evolution.com --- base/src/org/compiere/model/MInOutLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MInOutLine.java b/base/src/org/compiere/model/MInOutLine.java index 1a16bd9662..0a2a615040 100644 --- a/base/src/org/compiere/model/MInOutLine.java +++ b/base/src/org/compiere/model/MInOutLine.java @@ -494,7 +494,7 @@ public class MInOutLine extends X_M_InOutLine return false; } // Locator is mandatory if no charge is defined - teo_sarca BF [ 2757978 ] - if(MProduct.PRODUCTTYPE_Item.equals(getProduct().getProductType())) + if(getProduct() != null && MProduct.PRODUCTTYPE_Item.equals(getProduct().getProductType())) { if (getM_Locator_ID() <= 0 && getC_Charge_ID() <= 0) {