mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 02:58:58 +00:00
don't return invalid bytesref in lookupTerm
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1439262 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d70a0e0406
commit
41cfa17016
@ -111,12 +111,16 @@ public abstract class SortedDocValues extends BinaryDocValues {
|
||||
// pass this spare down to DiskDV, which will then
|
||||
// "use" our byte[] ...
|
||||
spare.bytes = BytesRef.EMPTY_BYTES;
|
||||
spare.offset = 0;
|
||||
spare.length = 0;
|
||||
return mid; // key found
|
||||
}
|
||||
}
|
||||
|
||||
// nocommit is this the right way...
|
||||
spare.bytes = BytesRef.EMPTY_BYTES;
|
||||
spare.offset = 0;
|
||||
spare.length = 0;
|
||||
return -(low + 1); // key not found.
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user