Index: RequestOutputStream.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/RequestOutputStream.java,v
retrieving revision 1.6
diff -u -r1.6 RequestOutputStream.java
--- RequestOutputStream.java	5 Jan 2002 11:16:00 -0000	1.6
+++ RequestOutputStream.java	12 Feb 2002 03:47:32 -0000
@@ -83,11 +83,12 @@
 
     /**
      * Construct an output stream wrapping the given stream.
+     * The stream will not use chunking.
      *
      * @param stream Wrapped input stream
      */
     public RequestOutputStream(OutputStream stream) {
-        this.stream = stream;
+        this(stream, false);
     }
 
     /**
@@ -96,6 +97,10 @@
      * @param stream Wrapped input stream
      */
     public RequestOutputStream(OutputStream stream, boolean useChunking) {
+	if (stream == null)
+	{
+		throw new NullPointerException("stream parameter");
+	}
         this.stream = stream;
         this.useChunking = useChunking;
     }
@@ -133,25 +138,25 @@
     /**
      * End chunk.
      */
-    private byte endChunk[] = "\r\n".getBytes();
+    private static final byte endChunk[] = "\r\n".getBytes();
 
 
     /**
      * CRLF.
      */
-    private byte crlf[] = "\r\n".getBytes();
+    private static final byte crlf[] = "\r\n".getBytes();
 
 
     /**
      * 0.
      */
-    private byte zero[] = "0".getBytes();
+    private static final byte zero[] = "0".getBytes();
 
 
     /**
      * 1.
      */
-    private byte one[] = "1".getBytes();
+    private static final byte one[] = "1".getBytes();
 
 
     // ------------------------------------------------------------- Properties

