Skip to content

Commit

Permalink
Update core/runtime/src/main/java/io/quarkus/runtime/configuration/Ch…
Browse files Browse the repository at this point in the history
…arsetConverter.java

Co-authored-by: Yoann Rodière <[email protected]>
  • Loading branch information
gsmet and yrodiere authored Jan 12, 2022
1 parent 017e0b4 commit 31c0807
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 31c0807

Please sign in to comment.