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

QueueViewMBean.getMessage throws NullPointerException when message not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.6.0
    • 5.7.0
    • JMX
    • None
    • Linux 64-bit.

    • 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. amqpatch.diff
          0.6 kB
          Robin Kåveland
        2. GetMessageNPETest.java
          3 kB
          Robin Kåveland

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: