Issue #2727 - Revisit JMX MBean lookup behavior.
Fixed NPE in case the class is an interface. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
7a2ba10ed6
commit
87f39449a9
|
@ -217,7 +217,7 @@ class MetaData
|
|||
klass = klass.getComponentType();
|
||||
if (klass.isPrimitive())
|
||||
return false;
|
||||
while (klass != Object.class)
|
||||
while (klass != null)
|
||||
{
|
||||
if (klass.isAnnotationPresent(ManagedObject.class))
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue