lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: MultiPhraseQuery.toString() throws null pointer exception
Date Sun, 04 Jul 2010 17:29:55 GMT
I opened LUCENE-2526 for this...

Mike

On Thu, Jul 1, 2010 at 2:19 PM, Woolf, Ross <Ross_Woolf@bmc.com> wrote:
> In Lucene 2.9.2 (have not checked 3.x) calling MultiPhraseQuery.toString() throws a null
pointer exception.  Below is very simple code to test this out.
>
> import org.apache.lucene.search.MultiPhraseQuery;
>
> public class testMPQ {
>
>        public static void main(String[] args){
>                MultiPhraseQuery mpq = new MultiPhraseQuery();
>                System.out.println(mpq.toString());
>        }
> }
>
> It will produce the following exception:
> Exception in thread "main" java.lang.NullPointerException
>        at org.apache.lucene.search.MultiPhraseQuery.toString(MultiPhraseQuery.java:275)
>        at testMPQ.main(tesMPQ.java:7)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message