Skip to content

Commit

Permalink
don't put a null parameter into a properties object.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 28, 2012
1 parent 639d75e commit 7c76576
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -223,7 +223,10 @@ private TypedProperties rereadDatabaseParameters(String externalId, String nodeG
final TypedProperties properties = new TypedProperties();
sqlTemplate.query(sql.getSql("selectParametersSql"), new ISqlRowMapper<Object>() {
public Object mapRow(Row row) {
properties.setProperty(row.getString("param_key"), row.getString("param_value"));
String value = row.getString("param_value");
if (value != null) {
properties.setProperty(row.getString("param_key"), row.getString("param_value"));
}
return row;
}
}, externalId, nodeGroupId);
Expand Down

0 comments on commit 7c76576

Please sign in to comment.