Index: ResponseInputStream.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/ResponseInputStream.java,v
retrieving revision 1.11
diff -u -r1.11 ResponseInputStream.java
--- ResponseInputStream.java	5 Jan 2002 11:16:00 -0000	1.11
+++ ResponseInputStream.java	12 Feb 2002 05:02:52 -0000
@@ -76,11 +76,23 @@
 
     // ----------------------------------------------------------- Constructors
 
+    /**
+     *
+     * @param stream Must be non-null.
+     * @param chunked <code>true</code> if the input stream is chunked
+     * @param contentLength content length
+     *
+     */
     public ResponseInputStream(InputStream stream, boolean chunked, int contentLength) {
+	if (null == stream)
+	{
+		throw new NullPointerException("InputStream parameter");
+	}
         closed = false;
         count = 0;
         this.chunk = chunked;
         this.contentLength = contentLength;
+        this.stream = stream;
     }
 
     /**
@@ -90,6 +102,18 @@
      */
     public ResponseInputStream(InputStream stream, HttpMethod method) {
         super();
+
+	if (null == stream)
+	{
+		throw new NullPointerException("InputStream parameter");
+	}
+
+	
+	if (null == method)
+	{
+		throw new NullPointerException("HttpMethod parameter");
+	}
+	
         closed = false;
         count = 0;
 

