IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) - fix NPE in PackIn (#2144)

This commit is contained in:
Carlos Ruiz 2023-12-16 10:52:13 +01:00 committed by GitHub
parent d104d2a0a5
commit d0d1cfb555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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);