jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1200742 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
Date Fri, 11 Nov 2011 05:43:48 GMT
Author: dbrosius
Date: Fri Nov 11 05:43:48 2011
New Revision: 1200742

URL: http://svn.apache.org/viewvc?rev=1200742&view=rev
Log:
guard against npe on exceptional path

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java?rev=1200742&r1=1200741&r2=1200742&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/CachingIndexReader.java
Fri Nov 11 05:43:48 2011
@@ -629,7 +629,9 @@ class CachingIndexReader extends FilterI
                         "Error saving " + FILE_CACHE_NAME_ARRAY + ": "
                                 + e.getMessage(), e);
             } finally {
-                io.close();
+                if (io != null) {
+                    io.close();
+                }
             }
         }
 



Mime
View raw message