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:
Simone Bordet 2018-09-21 10:56:13 +02:00
parent 7a2ba10ed6
commit 87f39449a9
1 changed files with 1 additions and 1 deletions

View File

@ -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;