Skip to content

Commit

Permalink
CB-5253 remove null properties
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-skoblikov committed Jun 7, 2024
1 parent 7a2608e commit 920b361
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ public static Map<String, Object> mergeConfigurations(
var additionalValue = additional.get(rootKey);

if (originValue == null || additionalValue == null) {
var resultValue = originValue != null ? originValue : additionalValue;
Object resultValue = null;
if (additional.containsKey(rootKey)) {
resultValue = additionalValue;
} else if (originValue != null) {
resultValue = originValue;
}
resultConfig.put(rootKey, resultValue);
continue;
}
Expand Down

0 comments on commit 920b361

Please sign in to comment.