activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jostbg <>
Subject [GitHub] activemq-artemis issue #1772: ARTEMIS-1601 Prevent NPE in StompSession#sendM...
Date Thu, 11 Jan 2018 16:57:08 GMT
Github user jostbg commented on the issue:
    The NPEs occur that's why I opened this PR. Since they are only logged in debug level
I only saw them while debugging some stomp issue I had.
    Throwing an exception is a relatively expensive operation in the JVM because of the stacktrace
information that needs to be generated, so in cases where it is know that a null value could
be returned it one should not rely on an NPE to be catched.


View raw message