lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35668] New: - NPE in phrase query searches
Date Fri, 08 Jul 2005 23:58:25 GMT
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: john.wang@gmail.com


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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message