/[Apache-SVN]
ViewVC logotype

Revision 700815


Jump to revision: Previous Next
Author: mharwood
Date: Wed Oct 1 15:37:05 2008 UTC (16 years, 1 month ago)
Changed paths: 1
Log Message:
Fix for a potential null-pointer-introducing bug which came about as part of the DocIdSet changes. TermsFilter no longer implemented bits(IndexReader) and the Filter base class' version of this was changed to return null. 
When dropping 2.4 Lucene in as a direct replacement for 2.3.2 my client code was getting NullPointer errors - returning null was never part of the Filter.bits contract and so this could be a problem for others using this class. 

Fix is for TermsFilter to implement bits(IndexReader) - this can safely be removed in later versions because it is a deprecated method going forward.


Changed paths

Path Details
Directorylucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/TermsFilter.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26