You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@param classLoader 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)
....
Peter Rietzler opened SPR-5264 and commented
The method documentation says:
@param
classLoader the ClassLoader to load classpath resources with,...
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
The text was updated successfully, but these errors were encountered: