mirror of https://github.com/apache/lucene.git
make sure the directory exists before listing files (this could only happen if instanceDir is invalid)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@702528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dd04d0fc2e
commit
9465b6bc29
|
@ -1440,9 +1440,11 @@ public final class SolrCore implements SolrInfoMBean {
|
||||||
// Hide everything...
|
// Hide everything...
|
||||||
Set<String> hide = new HashSet<String>();
|
Set<String> hide = new HashSet<String>();
|
||||||
File configdir = new File( solrConfig.getResourceLoader().getConfigDir() );
|
File configdir = new File( solrConfig.getResourceLoader().getConfigDir() );
|
||||||
|
if( configdir.exists() && configdir.isDirectory() ) {
|
||||||
for( String file : configdir.list() ) {
|
for( String file : configdir.list() ) {
|
||||||
hide.add( file.toUpperCase() );
|
hide.add( file.toUpperCase() );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// except the "gettable" list
|
// except the "gettable" list
|
||||||
StringTokenizer st = new StringTokenizer( gettable );
|
StringTokenizer st = new StringTokenizer( gettable );
|
||||||
|
|
Loading…
Reference in New Issue