SOLR-9275: fix NPE in SolrCoreParser.init

This commit is contained in:
Christine Poerschke 2016-07-19 11:28:57 +01:00
parent 80a2e73ccd
commit a4970c8685
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ public class SolrCoreParser extends CoreParser implements NamedListInitializedPl
@Override
public void init(NamedList initArgs) {
if (initArgs == null || initArgs.size() == 0) {
return;
}
final SolrResourceLoader loader;
if (req == null) {
loader = new SolrResourceLoader();