mirror of https://github.com/apache/lucene.git
LUCENE-10291: Bug fix.
This commit is contained in:
parent
f9ff620ec6
commit
7fdba36941
|
@ -95,6 +95,9 @@ class MergeReaderWrapper extends LeafReader {
|
|||
// We could check the FieldInfo IndexOptions but there's no point since
|
||||
// PostingsReader will simply return null for fields that don't exist or that have no terms
|
||||
// index.
|
||||
if (fields == null) {
|
||||
return null;
|
||||
}
|
||||
return fields.terms(field);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue