From 6c617e53e8471aeeba1274133457f66f6f609a9c Mon Sep 17 00:00:00 2001 From: mjudd Date: Fri, 18 Sep 2009 20:46:31 +0000 Subject: [PATCH] BF[2861697] Incorrect string conversion in ImportHelper https://sourceforge.net/tracker/index.php?func=detail&aid=2861697&group_id=176962&atid=879332 --- .../server/org/adempiere/server/rpl/imp/ImportHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java b/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java index ad8f8aa847..88339215be 100644 --- a/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java +++ b/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java @@ -70,6 +70,9 @@ import org.w3c.dom.NodeList; * @author victor.perez@e-evolution.com, www.e-evolution.com *
  • BF[2836406] Error when try get ID but do not is the first field *
  • + * @author michael.judd@akunagroup.com, http://www.akunagroup.com + *
  • BF[2861697] Incorrect string conversion + *
  • https://sourceforge.net/tracker/index.php?func=detail&aid=2861697&group_id=176962&atid=879332 */ public class ImportHelper { @@ -643,7 +646,7 @@ public class ImportHelper { || col.getAD_Reference_ID() == DisplayType.TableDir || col.getAD_Reference_ID() == DisplayType.Table) { - String stringValue = (String)values[i]; + String stringValue = (String)values[i].toString(); int value = Integer.parseInt(stringValue); pstmt.setInt(i+1, value); log.info("pstmt.setInt["+(i+1)+"] = [" + value +"]");