IDEMPIERE-2325 Env.parseVariable(String, PO, String, boolean) displays 'null' instead of ''

This commit is contained in:
Nicolas Micoud 2014-11-26 11:06:10 -05:00
parent 7d8537cc07
commit 3ef895aa91
1 changed files with 3 additions and 2 deletions

View File

@ -1509,8 +1509,9 @@ public final class Env
if (column.isSecure()) { if (column.isSecure()) {
outStr.append("********"); outStr.append("********");
} else { } else {
outStr.append(DB.getSQLValueString(trxName, String value = DB.getSQLValueString(trxName,"SELECT " + columnName + " FROM " + tableName + " WHERE " + tableName + "_ID = ?", (Integer)v);
"SELECT " + columnName + " FROM " + tableName + " WHERE " + tableName + "_ID = ?", (Integer)v)); if (value != null)
outStr.append(value);
} }
} }
} }