mirror of https://github.com/apache/lucene.git
fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1198332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1e73f46134
commit
f8d7c081c8
|
@ -785,7 +785,7 @@ public class TestIndexWriterReader extends LuceneTestCase {
|
|||
}
|
||||
// final check
|
||||
IndexReader r2 = IndexReader.openIfChanged(r);
|
||||
if (r2 != r) {
|
||||
if (r2 != null) {
|
||||
r.close();
|
||||
r = r2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue