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