Skip to content
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

NPE in RestTemplate with Resource implementation where getFilename() returns null [SPR-10848] #15475

spring-issuemaster opened this issue Aug 20, 2013 · 1 comment


Copy link

@spring-issuemaster spring-issuemaster commented Aug 20, 2013

Gabriel Axel opened SPR-10848 and commented

When attempting to use a Resource implementation where getFilename() returns null, such as ByteArrayResource, as the payload for RestTemplate operations, ResourceHttpMessageConverter.ActivationMediaTypeFactory.getMediaType() calls FileTypeMap.getContentType() with null value which throws NullPointerException.

Affects: 3.2.4

Referenced from: commits a17912d, d662067


This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Aug 21, 2013

Gabriel Axel commented

Submitted pull request with fix: #339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.