anmol-saxena-14 opened a new pull request, #1967:
URL: https://github.com/apache/activemq/pull/1967

   `AbstractJmxCommand.execute` called `jmxServiceUrl.toString()` without a 
null check. `jmxServiceUrl` is never set in local JMX mode (--jmxlocal), so any 
exception thrown in that mode produced a **NullPointerException** instead of 
the real error.
   
   `AbstractCommand.handleException` started cause-chain traversal from 
`exception.getCause()`, which is null for exceptions thrown without a wrapped 
cause (e.g. IllegalArgumentException). This caused a **NullPointerException** 
that masked the original exception and swallowed the error message entirely.


-- 
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


Reply via email to