[camel] branch master updated: CAMEL-12867 - Camel-Slack: Must configure Consumer before using it

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated: CAMEL-12867 - Camel-Slack: Must configure Consumer before using it

acosentino
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 9dd7fc1  CAMEL-12867 - Camel-Slack: Must configure Consumer before using it
9dd7fc1 is described below

commit 9dd7fc1ddfe2f85136784138e988a68dc08a4170
Author: Andrea Cosentino <[hidden email]>
AuthorDate: Mon Oct 8 11:33:48 2018 +0200

    CAMEL-12867 - Camel-Slack: Must configure Consumer before using it
---
 .../src/main/java/org/apache/camel/component/slack/SlackEndpoint.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java
index 2b63f13..987834c 100644
--- a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java
+++ b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java
@@ -79,6 +79,7 @@ public class SlackEndpoint extends DefaultEndpoint {
             throw new RuntimeCamelException("Missing required endpoint configuration: token must be defined for Slack consumer");
         }
         SlackConsumer consumer = new SlackConsumer(this, processor);
+        configureConsumer(consumer);
         return consumer;
     }