You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org> on 2012/07/17 11:43:33 UTC

[jira] [Updated] (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 ]

Robin Kåveland Hansen updated AMQ-3934:
---------------------------------------

    Attachment: GetMessageNPETest.java

This unit test demonstrates the issue.
                
> 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
>            Priority: Minor
>         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