I´m using HTTPUnit 1.7 to test a file upload.
I got an NullPointerException from MimeEncodedMessageBody.fixLineEndings( String value ).
because i did not explicitly set an empty value for each Teaxtarea on my form.
So if it comes to the mentioned method, the value is null and Java tells me about the NullPointerException.
I needed a debug Session to find out that i have to set the values explicitly. I didn´t read all Howto´s and References.
So maybe i should have known if i RTFM. But wouldn´t it be smarter if you check for a value which is null at this place and either replace it by an empty String or throw an Exception with a better Failure Message ?
Log in to post a comment.