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:
Robert Muir 2011-11-06 09:56:39 +00:00
parent 1e73f46134
commit f8d7c081c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}