IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) - fix NPE in PackIn (#2144)
This commit is contained in:
parent
d104d2a0a5
commit
d0d1cfb555
|
@ -153,6 +153,7 @@ 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));
|
||||||
|
if (po != null)
|
||||||
objectUU = po.get_UUID();
|
objectUU = po.get_UUID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue