Skip to content

Commit 43dab5f

Browse files
committed
fix(core): More resilient property adapter
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
1 parent 65affcd commit 43dab5f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

arconia-core/src/main/java/io/arconia/core/config/adapter/PropertyAdapter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public <T> Builder mapProperty(String externalKey, String arconiaKey, Function<S
5858
String value = environment.getProperty(externalKey);
5959
if (StringUtils.hasText(value)) {
6060
var convertedValue = converter.apply(value.trim());
61-
adapter.arconiaProperties.put(arconiaKey, convertedValue);
61+
if (convertedValue != null) {
62+
adapter.arconiaProperties.put(arconiaKey, convertedValue);
63+
}
6264
}
6365
return this;
6466
}

0 commit comments

Comments
 (0)