From a4ec500a56411e46b867eb80efc9c0730ec61133 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 4 Nov 2013 21:29:39 +0800 Subject: [PATCH] Remove the variable initializer for tableID and tableName. We must not use variable initializer for the 2 variable since that will overwrite the initialization done in the initPO method ( Execution Sequence: GenericPO Constructor > PO Constructor > initPO() > GenericPO instance variable initializer ). --- .../src/org/adempiere/model/GenericPO.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/org.adempiere.base/src/org/adempiere/model/GenericPO.java b/org.adempiere.base/src/org/adempiere/model/GenericPO.java index 3149c8dff0..e65deb5f10 100644 --- a/org.adempiere.base/src/org/adempiere/model/GenericPO.java +++ b/org.adempiere.base/src/org/adempiere/model/GenericPO.java @@ -81,9 +81,12 @@ public class GenericPO extends PO { super(new PropertiesWrapper(ctx, tableName), 0, trxName, rs); } - private int tableID = 0; - - private String tableName = null; + /** + * We must not use variable initializer here since the 2 variable below will be initialize inside + * the initPO method called by the parent constructor. + */ + private int tableID; + private String tableName; /** Load Meta Data */ protected POInfo initPO(Properties ctx) {