diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java index 792084b76968d..cd1436fca8e32 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java @@ -25,6 +25,10 @@ public Charset convert(String value) { String trimmedCharset = value.trim(); + if (trimmedCharset.isEmpty()) { + return null; + } + try { return Charset.forName(trimmedCharset); } catch (Exception e) {