commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r768541 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
Date Sat, 25 Apr 2009 14:54:42 GMT
Author: sebb
Date: Sat Apr 25 14:54:42 2009
New Revision: 768541

URL: http://svn.apache.org/viewvc?rev=768541&view=rev
Log:
Protect against possible NPE

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java?rev=768541&r1=768540&r2=768541&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
Sat Apr 25 14:54:42 2009
@@ -392,7 +392,9 @@
                 "111111111111111111111111111000101011".equals(str);
             }
         } finally {
-            in.close();
+            if (in != null) {
+                in.close();
+            }
             rmdir(check);
         } 
     }



Mime
View raw message