Skip to content

Commit f9e68cd

Browse files
authored
quarkus-next: java.util.NoSuchElementException: No value present causes quarkus-server build failure (#28857)
* resolveFileLogLocation transformer method now checks the location value presence Closes: #28856 Signed-off-by: Peter Zaoral <[email protected]>
1 parent d7ef650 commit f9e68cd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,7 @@ private static BiFunction<Optional<String>, ConfigSourceInterceptorContext, Opti
208208
}
209209

210210
private static Optional<String> resolveFileLogLocation(Optional<String> value, ConfigSourceInterceptorContext configSourceInterceptorContext) {
211-
String location = value.get();
212-
213-
if (location.endsWith(File.separator)) {
214-
return of(location + LoggingOptions.DEFAULT_LOG_FILENAME);
215-
}
216-
217-
return value;
211+
return value.map(location -> location.endsWith(File.separator) ? location + LoggingOptions.DEFAULT_LOG_FILENAME : location);
218212
}
219213

220214
private static Level toLevel(String categoryLevel) throws IllegalArgumentException {

0 commit comments

Comments
 (0)