vy commented on code in PR #4185: URL: https://github.com/apache/logging-log4j2/pull/4185#discussion_r3782015530
########## src/changelog/.2.x.x/4185_fix_jmx_mbean_npe.xml: ########## @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<entry xmlns="https://logging.apache.org/xml/ns" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" + https://logging.apache.org/xml/ns + https://logging.apache.org/xml/ns/log4j-changelog-0.xsd" + type="fixed"> + <issue id="4185" link="https://github.com/apache/logging-log4j2/pull/4185"/> + <description format="asciidoc"> + Fix `NPE` in `LoggerDynamicMBean.addAppender()` and `AppenderDynamicMBean.setLayout()`; both now fail with an `MBeanException` when the class cannot be instantiated. Review Comment: ```suggestion Fix exceptions in JMX integration ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
