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

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


The following commit(s) were added to refs/heads/camel-4.0.x by this push:
     new 9ec1d4edaaa fix getInOnlyTemplate in SpringRabbitMQProducer.java 
(#14823) (#14846)
9ec1d4edaaa is described below

commit 9ec1d4edaaa178ead4c6201e49d45b7811aca23c
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Jul 16 11:48:35 2024 +0200

    fix getInOnlyTemplate in SpringRabbitMQProducer.java (#14823) (#14846)
    
    getInOnlyTemplate is checking if inOutTemplate is null to determine whether 
or not it should initialize inOnlyTemplate.  It should check inOnlyTemplate.  
This change fixes that.
    
    Co-authored-by: Kevin Hostelley 
<87038521+kevin-ch...@users.noreply.github.com>
---
 .../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;

Reply via email to