lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1418643 - /lucene/dev/branches/branch_4x/lucene/MIGRATE.txt
Date Sat, 08 Dec 2012 11:45:59 GMT
Author: mikemccand
Date: Sat Dec  8 11:45:58 2012
New Revision: 1418643

URL: http://svn.apache.org/viewvc?rev=1418643&view=rev
Log:
add null check

Modified:
    lucene/dev/branches/branch_4x/lucene/MIGRATE.txt

Modified: lucene/dev/branches/branch_4x/lucene/MIGRATE.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/MIGRATE.txt?rev=1418643&r1=1418642&r2=1418643&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/MIGRATE.txt (original)
+++ lucene/dev/branches/branch_4x/lucene/MIGRATE.txt Sat Dec  8 11:45:58 2012
@@ -248,7 +248,7 @@ enumeration APIs.  Here are the major ch
       import org.apache.lucene.index.MultiFields;
 
       Bits liveDocs = MultiFields.getLiveDocs(indexReader);
-      if (!liveDocs.get(docID)) {
+      if (liveDocs != null && !liveDocs.get(docID)) {
         // document is deleted...
       }
     



Mime
View raw message