lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Resolved: (LUCENE-560) NPE in SpanNear when used as exclusion for SpanNot
Date Tue, 16 May 2006 00:59:07 GMT
     [ ]
Hoss Man resolved LUCENE-560:

    Resolution: Duplicate

> NPE in SpanNear when used as exclusion for SpanNot
> --------------------------------------------------
>          Key: LUCENE-560
>          URL:
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Reporter: Hoss Man
>  Attachments: LUCENE-560-test.patch, LUCENE-560-test.patch
> It seems that if you try to use a SpanNear query as the "exclude" argument to a SpanNot
query, you encounter an NPE.  The stack trace looks like the following (as of trunk r398639)
>     [junit] java.lang.NullPointerException
>     [junit]     at
>     [junit]     at$
>     [junit]     at
>     [junit]     at
>     [junit]     at
> patch to TestBasics demonstrating bug will be attached shortly.  I believe the problem
is that SpanNotQuery$1 is calling "excludeSpans.doc()" without ever calling ""
... this "works" when the exclude query is a TermQuery becuase the value returned by doc()
is -1 ... but with SpanNearQuery tries to pop the initial value off of a queue which hasn't
been initialized yet.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message