camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/3] camel git commit: CAMEL-10736: Box component configuration problem
Date Mon, 23 Jan 2017 06:33:17 GMT
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/85f4bd7b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/85f4bd7b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/85f4bd7b

Branch: refs/heads/camel-2.18.x
Commit: 85f4bd7bab51304e22489bbf1b20c771dae94394
Parents: 438524e
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Jan 23 07:31:00 2017 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Jan 23 07:32:23 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/85f4bd7b/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);
         }
     }
 


Mime
View raw message