Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1601

NPE silently thrown in StompSession#sendMessage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • STOMP
    • None
    • Artemis 2.5.0-SNAPSHOT

    Description

      During debugging a stomp session I realized that the StompSession's send method does not check if looking up a subscription returns null:

      StompSubscription subscription = subscriptions.get(consumer.getID());
      

      This later sometimes results NPEs at:

      if (subscription.getAck().equals(Stomp.Headers.Subscribe.AckModeValues.AUTO)) {
      

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              johan1 Johan Stenberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: