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 <[email protected]> Authored: Tue May 10 12:59:33 2016 +0100 Committer: Robert Gemmell <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
