gtully commented on code in PR #5340: URL: https://github.com/apache/activemq-artemis/pull/5340#discussion_r1837989702
########## artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java: ########## @@ -834,7 +835,12 @@ public int getAddressMemoryUsagePercentage() { @Override public String getHAPolicy() { - return configuration.getHAPolicyConfiguration().getType().getName(); + HAPolicyConfiguration haConfig = configuration.getHAPolicyConfiguration(); Review Comment: It should avoid the NPE, and maybe return null if the policy is null. -- 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: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact