Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85A37D865 for ; Tue, 17 Jul 2012 13:04:39 +0000 (UTC) Received: (qmail 29102 invoked by uid 500); 17 Jul 2012 13:04:38 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 28367 invoked by uid 500); 17 Jul 2012 13:04:38 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 28048 invoked by uid 99); 17 Jul 2012 13:04:36 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2012 13:04:36 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id AC0F9142850 for ; Tue, 17 Jul 2012 13:04:35 +0000 (UTC) Date: Tue, 17 Jul 2012 13:04:35 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <488139419.63616.1342530275708.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1160500737.62980.1342518094802.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (AMQ-3934) QueueViewMBean.getMessage throws NullPointerException when message not found MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3934?page=3Dcom.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. =20 > QueueViewMBean.getMessage throws NullPointerException when message not fo= und > -------------------------------------------------------------------------= --- > > 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=C3=A5veland Hansen > Assignee: Timothy Bish > Priority: Minor > Fix For: 5.7.0 > > Attachments: GetMessageNPETest.java, amqpatch.diff > > > When calling QueueViewMBean.getMessage(String messageID), a NullpointerEx= ception is thrown from QueueView.java:40 when the message is not found on t= he queue. Adding a nullcheck in QueueView.getMessage(String messageID) fixe= s the issue. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira