lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Sorting case-insensitively
Date Thu, 10 Jul 2008 05:14:50 GMT

: But when my code runs, I get a NullPointerException in Lucene's
: SortComparator,
: line 54 which reads:
: 
: 	return cachedValues[i.doc].compareTo (cachedValues[j.doc]);
: 
: because cachedCalues[i.doc] is null.  But why is it null?

I'm going to guess you have a doc where that field doesn't have a value.  
ordinarily that's fine, but maybe SortComparator doesn't handle 
that case very well.  what's the full stack trace look like?





-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message