-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Peter Rietzler opened SPR-5264 and commented
The method documentation says:
@paramclassLoader the ClassLoader to load classpath resources with,- or <code>null</code> for using the thread context class loader
...
public PathMatchingResourcePatternResolver(ClassLoader classLoader) {
The following code throws a NullPointerException:
new PathMatchingResourcePatternResolver(null).getResources("*/**");
java.lang.NullPointerException
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:299)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:267)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:334)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:263)
....
No further details from SPR-5264