From d0d1cfb5558bd2210cb9b8701fe80505b88fb5f5 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 16 Dec 2023 10:52:13 +0100 Subject: [PATCH] IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) - fix NPE in PackIn (#2144) --- .../src/org/adempiere/pipo2/AbstractElementHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java b/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java index cf90e9a987..05027056e8 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java @@ -153,7 +153,8 @@ public abstract class AbstractElementHandler implements ElementHandler { if (Util.isEmpty(objectUU) && objectID > 0 && detail.getAD_Table_ID() > 0) { MTable table = MTable.get(ctx.ctx, detail.getAD_Table_ID(), getTrxName(ctx)); PO po = table.getPO(objectID, getTrxName(ctx)); - objectUU = po.get_UUID(); + if (po != null) + objectUU = po.get_UUID(); } detail.setName(objectName);