incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r494217 - /incubator/ivy/trunk/src/java/org/apache/ivy/util/FileUtil.java
Date Mon, 08 Jan 2007 22:04:20 GMT
Author: maartenc
Date: Mon Jan  8 14:04:19 2007
New Revision: 494217

URL: http://svn.apache.org/viewvc?view=rev&rev=494217
Log:
Fixed a NPE.

Modified:
    incubator/ivy/trunk/src/java/org/apache/ivy/util/FileUtil.java

Modified: incubator/ivy/trunk/src/java/org/apache/ivy/util/FileUtil.java
URL: http://svn.apache.org/viewvc/incubator/ivy/trunk/src/java/org/apache/ivy/util/FileUtil.java?view=diff&rev=494217&r1=494216&r2=494217
==============================================================================
--- incubator/ivy/trunk/src/java/org/apache/ivy/util/FileUtil.java (original)
+++ incubator/ivy/trunk/src/java/org/apache/ivy/util/FileUtil.java Mon Jan  8 14:04:19 2007
@@ -153,8 +153,11 @@
                 if (l != null) {
                     l.progress(evt.update(buffer, c, total));
                 }
-            } 
-            evt.update(EMPTY_BUFFER, 0, total);
+            }
+            
+            if (l != null) {
+            	evt.update(EMPTY_BUFFER, 0, total);
+            }
             
             // close the streams
             src.close();



Mime
View raw message