Skip to content

ResourcePatternUtils.getResourcePatternResolver does not accept null arg [SPR-14500] #19069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Jul 21, 2016 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

Backported to: 4.2.8, 3.2.18

@spring-projects-issues spring-projects-issues added type: bug A general bug status: backported An issue that has been backported to maintenance branches in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.3.2 milestone Jan 11, 2019
This was referenced Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants