maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r668181 - /maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/LazyFileOutputStream.java
Date Mon, 16 Jun 2008 15:05:53 GMT
Author: brett
Date: Mon Jun 16 08:05:52 2008
New Revision: 668181

URL: http://svn.apache.org/viewvc?rev=668181&view=rev
Log:
[WAGON-222] Empty file transfer causes NPE

Modified:
    maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/LazyFileOutputStream.java

Modified: maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/LazyFileOutputStream.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/LazyFileOutputStream.java?rev=668181&r1=668180&r2=668181&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/LazyFileOutputStream.java
(original)
+++ maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/LazyFileOutputStream.java
Mon Jun 16 08:05:52 2008
@@ -74,7 +74,10 @@
     public void flush()
         throws IOException
     {
-        delegee.flush();
+        if ( delegee != null )
+        {
+            delegee.flush();
+        }
     }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message