lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Taylor <paul_t...@fastmail.fm>
Subject Re: NullPointerException thrown on tokenizer in 4.1, worked okay in 3.6
Date Tue, 26 Feb 2013 14:21:37 GMT
On 26/02/2013 12:29, Paul Taylor wrote:
> This code worked in 3.6 but now throws nullpointer exception in 41, Im 
> not expecting there to be a token created, but surely it shouldn't 
> throw NullPointerException
>
> Tokenizer tokenizer = new 
> org.apache.lucene.analysis.standard.StandardTokenizer(Version.LUCENE_41, 
> new StringReader("!!!"));
> tokenizer.incrementToken();
Same problem, need to do tokenizer.reset() befoe incrementToken() 
(Although sometimes works without)

---------------------------------------------------------------------
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