diff --git a/src/java/org/apache/solr/core/JmxMonitoredMap.java b/src/java/org/apache/solr/core/JmxMonitoredMap.java index be6319ef4fb..5fa0e11c362 100644 --- a/src/java/org/apache/solr/core/JmxMonitoredMap.java +++ b/src/java/org/apache/solr/core/JmxMonitoredMap.java @@ -184,7 +184,9 @@ public class JmxMonitoredMap extends throws MalformedObjectNameException { Hashtable map = new Hashtable(); map.put("type", key); - map.put("id", infoBean.getName()); + if (infoBean.getName() != null && !"".equals(infoBean.getName())) { + map.put("id", infoBean.getName()); + } return ObjectName.getInstance(jmxRootName, map); }