lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woolf, Ross" <Ross_Wo...@BMC.com>
Subject MultiPhraseQuery.toString() throws null pointer exception
Date Thu, 01 Jul 2010 18:19:37 GMT
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


Mime
View raw message