MBeanExporter fails against null beans [SPR-15031] #19598
org.springframework.jmx.export.MBeanExporter#registerBeanNameOrInstance(Object,String) may encounter situation when the bean value returned by the getBean(beanName) at line 601 is null. One common situation when this happens is when a FactoryBean.getObject() returns null (valid since Spring 2.0) based on some configuration settings.
MBeanExporter or its subclasses cannot deal with this situation:
Example for reproduction:
Tested with 4.2.6, code in either 4.3.x or 5. does not appear to have any changes.
Affects: 3.2.17, 4.2.6
The text was updated successfully, but these errors were encountered: