mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-08 18:41:37 +00:00
Make sure property mapping exception are swallowed
This commit is contained in:
+2
-1
@@ -77,7 +77,8 @@ class SpringConfigurationPropertySource implements ConfigurationPropertySource {
|
||||
Assert.notNull(propertySource, "PropertySource must not be null");
|
||||
Assert.notNull(mapper, "Mapper must not be null");
|
||||
this.propertySource = propertySource;
|
||||
this.mapper = mapper;
|
||||
this.mapper = (mapper instanceof DelegatingPropertyMapper ? mapper
|
||||
: new DelegatingPropertyMapper(mapper));
|
||||
this.containsDescendantOf = (containsDescendantOf != null ? containsDescendantOf
|
||||
: (n) -> ConfigurationPropertyState.UNKNOWN);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user