Index: RequestOutputStream.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/RequestOutputStream.java,v
retrieving revision 1.8
diff -u -r1.8 RequestOutputStream.java
--- RequestOutputStream.java	17 Feb 2002 12:15:56 -0000	1.8
+++ RequestOutputStream.java	17 Feb 2002 19:26:39 -0000
@@ -77,6 +77,9 @@
  * @author Sean C. Sullivan
  * @author <a href="mailto:dion@apache.org">dIon Gillard</a>
  * @version $Revision: 1.8 $ $Date: 2002/02/17 12:15:56 $
+ *
+ * @see ResponseInputStream
+ *
  */
 public class RequestOutputStream
     extends OutputStream {
@@ -87,7 +90,7 @@
      * Construct an output stream wrapping the given stream.
      * The stream will not use chunking.
      *
-     * @param stream Wrapped input stream
+     * @param stream wrapped output stream. Must be non-null.
      */
     public RequestOutputStream(OutputStream stream) {
         this(stream, false);
@@ -96,7 +99,7 @@
     /**
      * Construct an output stream wrapping the given stream.
      *
-     * @param stream Wrapped input stream
+     * @param stream wrapped output stream. Must be non-null.
      */
     public RequestOutputStream(OutputStream stream, boolean useChunking) {
         if (stream == null) {
@@ -185,12 +188,13 @@
      * without a carriage return-line feed (CRLF)
      * character at the end.
      *
-     * @param s         the <code>String</code to send to the client
+     * @param s the <code>String</code> to send to the client. Must be non-null.
      * @exception IOException   if an input or output exception occurred
      */
     public void print(String s) throws IOException {
-        if (s == null)
-                s = "null";
+        if (null == s) {
+                throw new NullPointerException("String parameter");
+        }
         int len = s.length();
         for (int i = 0; i < len; i++) {
             write(s.charAt(i));

