[Swift-commit] cog r3433

swift at ci.uchicago.edu swift at ci.uchicago.edu
Mon Jul 30 04:10:03 CDT 2012


------------------------------------------------------------------------
r3433 | hategan | 2012-07-30 04:09:00 -0500 (Mon, 30 Jul 2012) | 1 line

avoid NPE if an error happens before the transfer starts
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/LocalIOProvider.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/LocalIOProvider.java	(revision 3432)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/LocalIOProvider.java	(working copy)
@@ -120,7 +120,9 @@
         }
 
         public void abort() throws IOException {
-            buf.close();
+            if (buf != null) {
+                buf.close();
+            }
             f.delete();
         }
 



More information about the Swift-commit mailing list