mirror of https://github.com/apache/lucene.git
Fix admin path for single cores (the core name is not null, it is an empty string)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@687340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b73afa5fbc
commit
5eb8861bb4
|
@ -31,7 +31,7 @@
|
|||
org.apache.solr.core.CoreContainer cores = (org.apache.solr.core.CoreContainer)request.getAttribute("org.apache.solr.CoreContainer");
|
||||
if( cores != null
|
||||
&& cores.getCores().size() > 0 // HACK! check that we have valid names...
|
||||
&& cores.getCores().iterator().next().getName() != null ) {
|
||||
&& cores.getCores().iterator().next().getName().length() != 0 ) {
|
||||
for( org.apache.solr.core.SolrCore core : cores.getCores() ) {%>
|
||||
<a href="<%= core.getName() %>/admin/">Admin <%= core.getName() %></a><br/>
|
||||
<% }} else { %>
|
||||
|
|
Loading…
Reference in New Issue