lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject NPE on startup when you comment out the queries in firstSearcher
Date Sun, 12 Jun 2011 13:03:09 GMT
I think this has been around forever (I'm seeing it in 1.4.1 too), but
I just happened to notice it. If you comment out the <arr
name="queries"> section in firstSearcher, you get an NPE as below:

Any reason I shouldn't make a patch and even apply it when I get my
credentials? It's a trivial fix, just return if the list is null.

Erick


SEVERE: java.lang.NullPointerException
	at org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:47)
	at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1117)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)

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


Mime
View raw message