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:17 UTC
[2/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/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 <da...@apache.org>
Authored: Mon Jan 23 07:31:00 2017 +0100
Committer: Claus Ibsen <da...@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);
}
}