You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Johan Stenberg (JIRA)" <ji...@apache.org> on 2018/01/11 11:14:00 UTC
[jira] [Created] (ARTEMIS-1601) NPE silently thrown in
StompSession#sendMessage
Johan Stenberg created ARTEMIS-1601:
---------------------------------------
Summary: NPE silently thrown in StompSession#sendMessage
Key: ARTEMIS-1601
URL: https://issues.apache.org/jira/browse/ARTEMIS-1601
Project: ActiveMQ Artemis
Issue Type: Bug
Components: STOMP
Affects Versions: 2.4.0
Environment: Artemis 2.5.0-SNAPSHOT
Reporter: Johan Stenberg
Assignee: Justin Bertram
During debugging a stomp session I realized that the StompSession's send method does not check if looking up a subscription returns null:
{code:java}
StompSubscription subscription = subscriptions.get(consumer.getID());
{code}
This later sometimes results NPEs at:
{code:java}
if (subscription.getAck().equals(Stomp.Headers.Subscribe.AckModeValues.AUTO)) {
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)