commit | 6da9a2aabdc5bc2ba359313f53809671cd75f036 | [log] [tgz] |
---|---|---|
author | Clement Escoffier <clement@apache.org> | Mon Dec 01 16:20:43 2008 +0000 |
committer | Clement Escoffier <clement@apache.org> | Mon Dec 01 16:20:43 2008 +0000 |
tree | 96055ca1c8f0f91b5971efd36a9ae97059061a6d | |
parent | 3b7b07ba304c61440f083609bfe3b1a5a5052504 [diff] |
Fix a minor bug when a MBean has'nt properties. This bug was inserted during the last refactoring (namespace sub-elements) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@722115 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java b/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java index d78fc47..8893121 100644 --- a/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java +++ b/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java
@@ -252,7 +252,7 @@ Element[] attributes = mbeans[0].getElements(JMX_PROPERTY_ELT, m_namespace); if (attributes == null) { - attributes = mbeans[0].getElements(JMX_METHOD_ELT); + attributes = mbeans[0].getElements(JMX_PROPERTY_ELT); if (attributes != null) { warn("The JMX property element should use the '" + m_namespace + "' namespace."); }