Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-3934

QueueViewMBean.getMessage throws NullPointerException when message not found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: JMX
    • Labels:
      None
    • Environment:

      Linux 64-bit.

    • Patch Info:
      Patch Available

      Description

      When calling QueueViewMBean.getMessage(String messageID), a NullpointerException is thrown from QueueView.java:40 when the message is not found on the queue. Adding a nullcheck in QueueView.getMessage(String messageID) fixes the issue.

        Attachments

        1. GetMessageNPETest.java
          3 kB
          Robin Kåveland
        2. amqpatch.diff
          0.6 kB
          Robin Kåveland

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              kaaveland Robin Kåveland
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: