You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2012/07/17 15:04:35 UTC

[jira] [Resolved] (AMQ-3934) QueueViewMBean.getMessage throws NullPointerException when message not found

     [ https://issues.apache.org/jira/browse/AMQ-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3934.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.7.0
         Assignee: Timothy Bish

Patch applied with thanks.
                
> QueueViewMBean.getMessage throws NullPointerException when message not found
> ----------------------------------------------------------------------------
>
>                 Key: AMQ-3934
>                 URL: https://issues.apache.org/jira/browse/AMQ-3934
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.6.0
>         Environment: Linux 64-bit.
>            Reporter: Robin Kåveland Hansen
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.7.0
>
>         Attachments: GetMessageNPETest.java, amqpatch.diff
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira