lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r632879 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexModifier.java
Date Sun, 02 Mar 2008 23:34:43 GMT
Author: mikemccand
Date: Sun Mar  2 15:34:40 2008
New Revision: 632879

URL: http://svn.apache.org/viewvc?rev=632879&view=rev
Log:
LUCENE-1199: do defensive check of indexReader != null before trying to close it

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexModifier.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexModifier.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexModifier.java?rev=632879&r1=632878&r2=632879&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexModifier.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexModifier.java Sun Mar  2 15:34:40
2008
@@ -571,7 +571,7 @@
       if (indexWriter != null) {
         indexWriter.close();
         indexWriter = null;
-      } else {
+      } else if (indexReader != null) {
         indexReader.close();
         indexReader = null;
       }



Mime
View raw message