lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul.elschot (JIRA)" <>
Subject [jira] Commented: (LUCENE-560) NPE in SpanNear when used as exclusion for SpanNot
Date Mon, 15 May 2006 17:33:07 GMT
    [ ] 

paul.elschot commented on LUCENE-560:

This might be a duplicate of LUCENE-352. Could you try the patch.txt on SpanNotQuery there?

Regards, Paul Elschot

> 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