camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] camel git commit: CAMEL-10736: Box component configuration problem
Date Mon, 23 Jan 2017 06:33:16 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 4b8b671ef -> 306663cce
  refs/heads/camel-2.18.x 438524ec4 -> 85f4bd7ba
  refs/heads/master 36ba1228e -> 9856285d1


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/9856285d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9856285d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9856285d

Branch: refs/heads/master
Commit: 9856285d1b9a8a0d3ca282178c70993c4f724596
Parents: 36ba122
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:31:00 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/9856285d/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 ac20424..3928b4d 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
@@ -78,12 +78,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