DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35668>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35668 Summary: NPE in phrase query searches Product: Lucene Version: 1.4 Platform: All OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Search AssignedTo: java-dev@lucene.apache.org ReportedBy: [EMAIL PROTECTED] Once in a while, I get: java.lang.NullPointerException at org.apache.lucene.index.MultipleTermPositions.skipTo(MultipleTermPosi tions.java:201) at org.apache.lucene.search.PhrasePositions.skipTo(PhrasePositions.java: 47) at org.apache.lucene.search.PhraseScorer.doNext(PhraseScorer.java:73) at org.apache.lucene.search.PhraseScorer.next(PhraseScorer.java:66) at org.apache.lucene.search.Scorer.score(Scorer.java:37) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:161) Not sure if it date dependent or a race condition. After looking at the lucene code (1.4.3): on line 201 of MultipleTermPositions.java >> while (target > _termPositionsQueue.peek().doc()) No null checks here is a little worrisome. I think at least a null check should be added so the search thread would not get killed. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]