From fb4c2d30072a7cdea3de489f011013a169e5a43c Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sat, 7 Sep 2013 03:52:22 +0800 Subject: [PATCH] IDEMPIERE-1297 2Pack: Remove code for the lookup of record and reference using business key. Fixed NPE in previous revision. --- org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java index d40620893e..f8d6e8317c 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java @@ -164,7 +164,8 @@ public class PoFiller{ return id; } else if (id == 0) { MColumn col = MColumn.get(ctx.ctx, po.get_TableName(), columnName); - if (MTable.isZeroIDTable(col.getReferenceTableName())) { + String refTableName = col.getReferenceTableName(); + if (refTableName != null && MTable.isZeroIDTable(refTableName)) { po.set_ValueNoCheck(columnName, id); return id; }