diff --git a/org.adempiere.base.callout/src/org/adempiere/base/callout/CostAdjustmentLineProduct.java b/org.adempiere.base.callout/src/org/adempiere/base/callout/CostAdjustmentLineProduct.java index 7be1b4111d..775415e8f7 100644 --- a/org.adempiere.base.callout/src/org/adempiere/base/callout/CostAdjustmentLineProduct.java +++ b/org.adempiere.base.callout/src/org/adempiere/base/callout/CostAdjustmentLineProduct.java @@ -61,6 +61,8 @@ public class CostAdjustmentLineProduct implements IColumnCallout { trxName = gt.get_TrxName(); } } + if (mTab.getValue("M_Inventory_ID") == null) + return null; MInventory inventory = new MInventory(ctx, (Integer) mTab.getValue("M_Inventory_ID"), trxName); if (MDocType.DOCSUBTYPEINV_CostAdjustment.equals(inventory.getC_DocType().getDocSubTypeInv())) { String costingMethod = inventory.getCostingMethod();