LUCENE-10291: Bug fix.

This commit is contained in:
Adrien Grand 2022-01-05 16:37:06 +01:00
parent f9ff620ec6
commit 7fdba36941
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ class MergeReaderWrapper extends LeafReader {
// We could check the FieldInfo IndexOptions but there's no point since // 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 // PostingsReader will simply return null for fields that don't exist or that have no terms
// index. // index.
if (fields == null) {
return null;
}
return fields.terms(field); return fields.terms(field);
} }