spring-framework/spring-web/src
Gabriel Axel d66206704e Fix NPE in ResourceHttpMessageConverter
ResourceHttpMessageConverter tries to use the filename to determine the
media type, but for Resource implementations such as ByteArrayResource
it is null, which causes NullPointerException. The fix checks whether
getFilename returns null before attempting to determine the media type
by it.

Issue: SPR-10848
2013-08-22 16:05:44 -04:00
..
main Fix NPE in ResourceHttpMessageConverter 2013-08-22 16:05:44 -04:00
test Fix NPE in ResourceHttpMessageConverter 2013-08-22 16:05:44 -04:00