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.");
             }