I opened LUCENE-2526 for this...

Mike

On Thu, Jul 1, 2010 at 2:19 PM, Woolf, Ross <ross_wo...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

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

Reply via email to