From 31c08070838f8ae2be092d95038968c805b2a8d0 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 12 Jan 2022 11:45:35 +0100 Subject: [PATCH] Update core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yoann Rodière --- .../io/quarkus/runtime/configuration/CharsetConverter.java | 4 ++++ 1 file changed, 4 insertions(+) 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) {