mirror of https://github.com/apache/lucene.git
SOLR-9275: fix NPE in SolrCoreParser.init
This commit is contained in:
parent
80a2e73ccd
commit
a4970c8685
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue