This commit is contained in:
Andy Wilkinson 2020-08-25 09:45:40 +01:00
parent 82e1eca0ad
commit 7a5392d6bd
1 changed files with 1 additions and 2 deletions

View File

@ -167,8 +167,7 @@ public class UndertowWebServerFactoryCustomizer
<T> Consumer<Map<String, String>> forEach(Function<Option<T>, Consumer<T>> function) {
return (map) -> map.forEach((key, value) -> {
Option<T> option = (Option<T>) this.nameLookup.get(getCanonicalName(key));
Assert.state(option != null,
"Unable to find '" + key + "' in " + ClassUtils.getShortName(this.source));
Assert.state(option != null, "Unable to find '" + key + "' in " + ClassUtils.getShortName(this.source));
T parsed = option.parseValue(value, getClass().getClassLoader());
function.apply(option).accept(parsed);
});