Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

attrs must always be non-null

Noble Paulb8cae28ff491
diff --git a/src/java/org/apache/solr/core/PluginInfo.java b/src/java/org/apache/solr/core/PluginInfo.java
index 936f0aa46b7..df77a797e9d 100644
--- a/src/java/org/apache/solr/core/PluginInfo.java
+++ b/src/java/org/apache/solr/core/PluginInfo.java
@@ -43,7 +43,7 @@ public class PluginInfo {
this.name = attrs.get("name");
this.className = attrs.get("class");
this.initArgs = initArgs;
- attributes = attrs == null ? Collections.<String, String>emptyMap() : unmodifiableMap(attrs);
+ attributes = unmodifiableMap(attrs);
this.children = children == null ? Collections.<PluginInfo>emptyList(): unmodifiableList(children);
}