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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0c03923  CAMEL-12512 - camel-consul - Option to inject Consul client
0c03923 is described below

commit 0c03923e045634df106e032a01d2efef0045d490
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue May 15 15:11:18 2018 +0200

    CAMEL-12512 - camel-consul - Option to inject Consul client
---
 .../src/main/java/org/apache/camel/component/consul/ConsulEndpoint.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulEndpoint.java
 
b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulEndpoint.java
index c8afe35..6b3cd2a 100644
--- 
a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulEndpoint.java
+++ 
b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulEndpoint.java
@@ -92,7 +92,7 @@ public class ConsulEndpoint extends DefaultEndpoint {
     public synchronized Consul getConsul() throws Exception {
         if (consul == null && 
ObjectHelper.isEmpty(getConfiguration().getConsulClient())) {
             consul = configuration.createConsulClient(getCamelContext());
-        } else {
+        } else if 
(ObjectHelper.isNotEmpty(getConfiguration().getConsulClient())) {
             consul = getConfiguration().getConsulClient();
         }
 

-- 
To stop receiving notification emails like this one, please contact
acosent...@apache.org.

Reply via email to