SOLR-3619: Fix NPE during unit tests

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1642017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy Potter 2014-11-27 03:22:56 +00:00
parent f8cd5c6688
commit 6abb23b22b
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ public class SystemInfoHandler extends RequestHandlerBase
if (solrCloudMode) {
rsp.add("zkHost", getCoreContainer(req, core).getZkController().getZkServerAddress());
}
rsp.add( "solr_home", cc.getSolrHome());
if (cc != null)
rsp.add( "solr_home", cc.getSolrHome());
rsp.add( "lucene", getLuceneInfo() );
rsp.add( "jvm", getJvmInfo() );
rsp.add( "system", getSystemInfo() );