Github user jbertram commented on the issue: https://github.com/apache/activemq-artemis/pull/1772 I'm not sure this is actually necessary. `java.lang.NullPointerException` extends `java.lang.RuntimeException` which in turn extends `java.lang.Exception` which is already being caught for this `try` block and returning 0.
---