mirror of
https://github.com/apache/lucene.git
synced 2025-03-03 23:09:36 +00:00
don't wrap if fields is null
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1292237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7a3d5497f
commit
5365c14656
@ -1372,7 +1372,12 @@ public abstract class LuceneTestCase extends Assert {
|
||||
r = new FilterAtomicReader((AtomicReader) r) {
|
||||
@Override
|
||||
public Fields fields() throws IOException {
|
||||
return new FilterFields(super.fields());
|
||||
Fields f = super.fields();
|
||||
if (f == null) {
|
||||
return null;
|
||||
} else {
|
||||
return new FilterFields(f);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user