ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1371112 - /ace/sandbox/marrs/org.apache.ace.client.repository.helper.bundle/src/org/apache/ace/client/repository/helper/bundle/impl/BundleHelperImpl.java
Date Thu, 09 Aug 2012 09:13:47 GMT
Author: marrs
Date: Thu Aug  9 09:13:46 2012
New Revision: 1371112

URL: http://svn.apache.org/viewvc?rev=1371112&view=rev
Log:
Added some extra null checks.

Modified:
    ace/sandbox/marrs/org.apache.ace.client.repository.helper.bundle/src/org/apache/ace/client/repository/helper/bundle/impl/BundleHelperImpl.java

Modified: ace/sandbox/marrs/org.apache.ace.client.repository.helper.bundle/src/org/apache/ace/client/repository/helper/bundle/impl/BundleHelperImpl.java
URL: http://svn.apache.org/viewvc/ace/sandbox/marrs/org.apache.ace.client.repository.helper.bundle/src/org/apache/ace/client/repository/helper/bundle/impl/BundleHelperImpl.java?rev=1371112&r1=1371111&r2=1371112&view=diff
==============================================================================
--- ace/sandbox/marrs/org.apache.ace.client.repository.helper.bundle/src/org/apache/ace/client/repository/helper/bundle/impl/BundleHelperImpl.java
(original)
+++ ace/sandbox/marrs/org.apache.ace.client.repository.helper.bundle/src/org/apache/ace/client/repository/helper/bundle/impl/BundleHelperImpl.java
Thu Aug  9 09:13:46 2012
@@ -232,7 +232,9 @@ public class BundleHelperImpl implements
         }
         finally {
             try {
-                jis.close();
+                if (jis != null) {
+                    jis.close();
+                }
             }
             catch (IOException e) {
                 // Too bad.
@@ -262,7 +264,9 @@ public class BundleHelperImpl implements
         }
         finally {
             try {
-                jis.close();
+                if (jis != null) {
+                    jis.close();
+                }
             }
             catch (Exception e) {
                 // Too bad.



Mime
View raw message