Skip to content

Commit

Permalink
DBZ-7767 Allow empty config property values
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros authored and jpechane committed Jun 12, 2024
1 parent d5df168 commit 766bf54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void configToProperties(Config config, Properties props, String oldPrefi
if (updatedPropertyName != null && updatedPropertyName.startsWith(oldPrefix)) {
String finalPropertyName = newPrefix + updatedPropertyName.substring(oldPrefix.length());
if (overwrite || !props.containsKey(finalPropertyName)) {
props.setProperty(finalPropertyName, config.getValue(name, String.class));
props.setProperty(finalPropertyName, config.getOptionalValue(name, String.class).orElse(""));
}
}
else if (name.startsWith(oldPrefix)) {
Expand Down

0 comments on commit 766bf54

Please sign in to comment.