diff --git a/src/java/org/apache/solr/core/SolrConfig.java b/src/java/org/apache/solr/core/SolrConfig.java index 8e495d675a8..d0994d09aa9 100644 --- a/src/java/org/apache/solr/core/SolrConfig.java +++ b/src/java/org/apache/solr/core/SolrConfig.java @@ -247,13 +247,9 @@ public class SolrConfig extends Config { Collections.>emptyMap(): Collections.unmodifiableMap(chains); } - private PluginInfo loadSinglePlugin(String tag){ - NodeList nodes = (NodeList) evaluate(tag, XPathConstants.NODESET); - for (int i=0; i l = loadPluginInfo(tag, false); + return l.isEmpty() ? null : l.get(0); } private List loadPluginInfo(String tag, boolean requireName) {