IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) - fix NPE in PackIn (#2144)
This commit is contained in:
parent
d104d2a0a5
commit
d0d1cfb555
|
@ -153,7 +153,8 @@ public abstract class AbstractElementHandler implements ElementHandler {
|
||||||
if (Util.isEmpty(objectUU) && objectID > 0 && detail.getAD_Table_ID() > 0) {
|
if (Util.isEmpty(objectUU) && objectID > 0 && detail.getAD_Table_ID() > 0) {
|
||||||
MTable table = MTable.get(ctx.ctx, detail.getAD_Table_ID(), getTrxName(ctx));
|
MTable table = MTable.get(ctx.ctx, detail.getAD_Table_ID(), getTrxName(ctx));
|
||||||
PO po = table.getPO(objectID, getTrxName(ctx));
|
PO po = table.getPO(objectID, getTrxName(ctx));
|
||||||
objectUU = po.get_UUID();
|
if (po != null)
|
||||||
|
objectUU = po.get_UUID();
|
||||||
}
|
}
|
||||||
|
|
||||||
detail.setName(objectName);
|
detail.setName(objectName);
|
||||||
|
|
Loading…
Reference in New Issue