[Httpunit-commit] SF.net SVN: httpunit:[997] trunk/httpunit/src/com/meterware/httpunit/ protocol/M
Brought to you by:
russgold
|
From: <wol...@us...> - 2008-11-06 00:10:12
|
Revision: 997
http://httpunit.svn.sourceforge.net/httpunit/?rev=997&view=rev
Author: wolfgang_fahl
Date: 2008-11-06 00:10:06 +0000 (Thu, 06 Nov 2008)
Log Message:
-----------
BR [ 2212706 ] NullPointerException in MimeEncodedMessageBody
by Dawn Lambeth
Modified Paths:
--------------
trunk/httpunit/src/com/meterware/httpunit/protocol/MimeEncodedMessageBody.java
Modified: trunk/httpunit/src/com/meterware/httpunit/protocol/MimeEncodedMessageBody.java
===================================================================
--- trunk/httpunit/src/com/meterware/httpunit/protocol/MimeEncodedMessageBody.java 2008-11-06 00:08:28 UTC (rev 996)
+++ trunk/httpunit/src/com/meterware/httpunit/protocol/MimeEncodedMessageBody.java 2008-11-06 00:10:06 UTC (rev 997)
@@ -102,7 +102,7 @@
*/
public void addParameter( String name, String value, String characterSet ) throws IOException {
if (name == null || name.length() == 0) return;
-
+ if (value == null || value.length() == 0) return;
writeLn( _outputStream, "--" + BOUNDARY );
writeLn( _outputStream, "Content-Disposition: form-data; name=\"" + name + '"' ); // XXX need to handle non-ascii names here
writeLn( _outputStream, "Content-Type: text/plain; charset=" + getCharacterSet() );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|