mattrpav commented on code in PR #2553:
URL: https://github.com/apache/activemq/pull/2553#discussion_r4026960677
##########
activemq-broker/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java:
##########
@@ -135,56 +143,83 @@ public void stopGracefully(String connectorName, String
queueName, long timeout,
@Override
public long getTotalEnqueueCount() {
- return
safeGetBroker().getDestinationStatistics().getEnqueues().getCount();
+ if (broker == null) {
+ return 0;
Review Comment:
How about '0' -> '0L' to tighten up code style?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact