Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

related to SOLR-201 - when I saw Shalin resolve that issue, i remembered noticing a while back that not declaring a defaultQuery caused all of the admin pages to fail with an NPE. the fix is pretty trivial

Chris M. Hostettera4bf5482a80f
diff --git a/src/webapp/web/admin/_info.jsp b/src/webapp/web/admin/_info.jsp
index 8042ad3e991..2914a3f0731 100644
--- a/src/webapp/web/admin/_info.jsp
+++ b/src/webapp/web/admin/_info.jsp
@@ -61,7 +61,7 @@
{
StringWriter tmp = new StringWriter();
XML.escapeCharData
- (solrConfig.get("admin/defaultQuery/text()", null), tmp);
+ (solrConfig.get("admin/defaultQuery/text()", ""), tmp);
defaultSearch = tmp.toString();
}
@@ -107,4 +107,4 @@
String cwd=System.getProperty("user.dir");
String solrHome= solrConfig.getInstanceDir();
-%>
\ No newline at end of file
+%>