You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/01/23 06:33:18 UTC

[3/3] camel git commit: CAMEL-10736: Box component configuration problem

CAMEL-10736: Box component configuration problem


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/306663cc
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/306663cc
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/306663cc

Branch: refs/heads/camel-2.17.x
Commit: 306663cce2b7f3f6bccafddfebc1cf4ff94877d6
Parents: 4b8b671e
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jan 23 07:31:00 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jan 23 07:32:55 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/box/BoxComponent.java    | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/306663cc/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
index c770d8f..9c851f1 100644
--- a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
+++ b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
@@ -76,12 +76,8 @@ public class BoxComponent extends AbstractApiComponent<BoxApiName, BoxConfigurat
     protected void doStart() throws Exception {
         super.doStart();
 
-        if (cachedBoxClient == null) {
-            if (configuration != null) {
-                cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
-            } else {
-                throw new IllegalArgumentException("Unable to connect, Box component configuration is missing");
-            }
+        if (cachedBoxClient == null && configuration != null) {
+            cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
         }
     }