Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 48D1E2007D0 for ; Tue, 10 May 2016 14:05:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 477EB160877; Tue, 10 May 2016 12:05:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 92E1F1607AA for ; Tue, 10 May 2016 14:05:24 +0200 (CEST) Received: (qmail 40567 invoked by uid 500); 10 May 2016 12:05:23 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 40558 invoked by uid 99); 10 May 2016 12:05:23 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2016 12:05:23 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 97040DFB04; Tue, 10 May 2016 12:05:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: robbie@apache.org To: commits@qpid.apache.org Message-Id: <05e2afe0cd2544d4b0c790ba882ca612@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: qpid-jms git commit: QPIDJMS-175: use the method to do the lookup as the preceding check did Date: Tue, 10 May 2016 12:05:23 +0000 (UTC) archived-at: Tue, 10 May 2016 12:05:25 -0000 Repository: qpid-jms Updated Branches: refs/heads/master 18f7a894c -> 590b3c65d QPIDJMS-175: use the method to do the lookup as the preceding check did Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/590b3c65 Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/590b3c65 Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/590b3c65 Branch: refs/heads/master Commit: 590b3c65dae57bd0f21050ef13674121b4bf9766 Parents: 18f7a89 Author: Robert Gemmell Authored: Tue May 10 12:59:33 2016 +0100 Committer: Robert Gemmell Committed: Tue May 10 12:59:33 2016 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/qpid/jms/JmsMessageProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/590b3c65/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsMessageProducer.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsMessageProducer.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsMessageProducer.java index f8d5684..ea2d2c9 100644 --- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsMessageProducer.java +++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsMessageProducer.java @@ -226,7 +226,7 @@ public class JmsMessageProducer implements AutoCloseable, MessageProducer { jmsEx = new IllegalStateException("The MessageProducer is closed"); } else { jmsEx = new IllegalStateException("The MessageProducer was closed due to an unrecoverable error."); - jmsEx.initCause(failureCause.get()); + jmsEx.initCause(getFailureCause()); } throw jmsEx; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org