cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1352499 - /cxf/trunk/api/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java
Date Thu, 21 Jun 2012 11:32:24 GMT
Author: cschneider
Date: Thu Jun 21 11:32:23 2012
New Revision: 1352499

URL: http://svn.apache.org/viewvc?rev=1352499&view=rev
Log:
Checking for null in constructor to avoid a null pointer exception later

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java?rev=1352499&r1=1352498&r2=1352499&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java Thu Jun 21
11:32:23 2012
@@ -34,6 +34,9 @@ public class CacheAndWriteOutputStream e
     
     public CacheAndWriteOutputStream(OutputStream stream) {
         super();
+        if (stream == null) {
+            throw new IllegalArgumentException("Stream may not be null");
+        }
         flowThroughStream = stream;
     }
 



Mime
View raw message