Closed
Description
Christoph Strebin opened SPR-14500 and commented
Method org.springframework.core.io.support.ResourcePatternUtils.getResourcePatternResolver
does not accept null argument, although the javadoc says it does.
@Test
public void testGetResourcePatternResolver() {
assertNotNull(ResourcePatternUtils.getResourcePatternResolver(null));
}
=>
java.lang.IllegalArgumentException: ResourceLoader must not be null
at org.springframework.util.Assert.notNull(Assert.java:165)
at org.springframework.core.io.support.ResourcePatternUtils.getResourcePatternResolver(ResourcePatternUtils.java:62)
Affects: 3.2.17, 4.2.6, 4.3.1