I haven't tried it, but I think the fix should be easy... never throw
that exception. Either check for null before the loop, or in the
loop.
Original code for native int sorting:
TermEnum termEnum = reader.terms (new Term (field, ));
try {
if (termEnum.term() == null)
On Thursday 14 April 2005 16:28, Yonik Seeley wrote:
I haven't tried it, but I think the fix should be easy... never throw
that exception.
As Lucene does not have the concept of a warning I think it should throw
exceptions when someone tries to do something that doesn't make sense
(even if
On Tuesday 12 April 2005 20:04, Bill Tschumy wrote:
Here is a small program that will manifest the error. Hopefully
someone can explain the problem. It happens with Lucene 1.4.2 and
1.4.3.
This is the code that throws the exception (from FieldCacheImpl.java):
TermEnum termEnum =