mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-07 01:39:46 +00:00
If the Stomp consumer was closed at or near the same time a message was dispatched then an NPE might result. 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 known that a null value could be returned one should check and handle it appropriately.