You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/07/16 09:39:34 UTC

(camel) 01/01: fix getInOnlyTemplate in SpringRabbitMQProducer.java (#14823)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-4.0.x-spring-rabbitmq
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 496226590a841419af4e7799044629c986505a04
Author: Kevin Hostelley <87...@users.noreply.github.com>
AuthorDate: Tue Jul 16 05:37:45 2024 -0400

    fix getInOnlyTemplate in SpringRabbitMQProducer.java (#14823)
    
    getInOnlyTemplate is checking if inOutTemplate is null to determine whether or not it should initialize inOnlyTemplate.  It should check inOnlyTemplate.  This change fixes that.
---
 .../org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java b/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java
index dbd09d74d57..988721de5eb 100644
--- a/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java
+++ b/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java
@@ -52,7 +52,7 @@ public class SpringRabbitMQProducer extends DefaultAsyncProducer {
     }
 
     public RabbitTemplate getInOnlyTemplate() {
-        if (inOutTemplate == null) {
+        if (inOnlyTemplate == null) {
             inOnlyTemplate = getEndpoint().createInOnlyTemplate();
         }
         return inOnlyTemplate;