Skip to content

Commit

Permalink
quarkus-next: java.util.NoSuchElementException: No value present caus…
Browse files Browse the repository at this point in the history
…es quarkus-server build failure (keycloak#28857)

* resolveFileLogLocation transformer method now checks the location value presence

Closes: keycloak#28856

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
  • Loading branch information
Pepo48 authored Apr 19, 2024
1 parent d7ef650 commit f9e68cd
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,7 @@ private static BiFunction<Optional<String>, ConfigSourceInterceptorContext, Opti
}

private static Optional<String> resolveFileLogLocation(Optional<String> value, ConfigSourceInterceptorContext configSourceInterceptorContext) {
String location = value.get();

if (location.endsWith(File.separator)) {
return of(location + LoggingOptions.DEFAULT_LOG_FILENAME);
}

return value;
return value.map(location -> location.endsWith(File.separator) ? location + LoggingOptions.DEFAULT_LOG_FILENAME : location);
}

private static Level toLevel(String categoryLevel) throws IllegalArgumentException {
Expand Down

0 comments on commit f9e68cd

Please sign in to comment.