Fix NPE in FormHttpMessageConverter

Issue: SPR-10187
This commit is contained in:
Rossen Stoyanchev
2013-01-21 13:23:59 -05:00
parent 21becef1bd
commit 0c56e86bfb
2 changed files with 7 additions and 4 deletions

View File

@@ -112,6 +112,7 @@ public class FormHttpMessageConverterTests {
parts.add("name 1", "value 1");
parts.add("name 2", "value 2+1");
parts.add("name 2", "value 2+2");
parts.add("name 3", null);
Resource logo = new ClassPathResource("/org/springframework/http/converter/logo.jpg");
parts.add("logo", logo);