You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2005/07/06 11:22:19 UTC
DO NOT REPLY [Bug 35626] New: -
Crash when querying an index using multiple term positions.
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=35626>.
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=35626
Summary: Crash when querying an index using multiple term
positions.
Product: Lucene
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Index
AssignedTo: java-dev@lucene.apache.org
ReportedBy: hans.hjelm@ling.su.se
file: MultipleTermPositions.java, line: 201, function: skipTo(int).
This refers to the source that can currently be downloaded from the lucene site,
Lucene v. 1.4.3.
The function peek() returns null (because top() also retruned null). There is no
check for this, as far as I can understand. The function doc() is called on a
null-object, which results in a NullPointerException.
I switched the specified line to this one:
while(_termPositionsQueue.peek() != null && target >
_termPositionsQueue.peek().doc())
This got rid of the crash for me.
--
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