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:
Shalin Shekhar Mangar 2008-08-20 14:19:06 +00:00
parent b73afa5fbc
commit 5eb8861bb4
1 changed files with 1 additions and 1 deletions

View File

@ -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 { %>