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 2020/05/05 08:57:02 UTC
[camel] 01/02: CAMEL-14928: Fixed configuring box causing error to
start.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e60da227e50c6634a8f13159258f6437fedb3aad
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue May 5 10:47:50 2020 +0200
CAMEL-14928: Fixed configuring box causing error to start.
---
.../src/main/java/org/apache/camel/component/box/BoxComponent.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-box/camel-box-component/src/main/java/org/apache/camel/component/box/BoxComponent.java b/components/camel-box/camel-box-component/src/main/java/org/apache/camel/component/box/BoxComponent.java
index a9a0757..162a587 100644
--- a/components/camel-box/camel-box-component/src/main/java/org/apache/camel/component/box/BoxComponent.java
+++ b/components/camel-box/camel-box-component/src/main/java/org/apache/camel/component/box/BoxComponent.java
@@ -30,7 +30,7 @@ import org.apache.camel.support.component.AbstractApiComponent;
public class BoxComponent extends AbstractApiComponent<BoxApiName, BoxConfiguration, BoxApiCollection> {
@Metadata
- BoxConfiguration configuration;
+ BoxConfiguration configuration; // needed for documentation generation
@Metadata(label = "advanced")
BoxAPIConnection boxConnection;
@@ -86,8 +86,8 @@ public class BoxComponent extends AbstractApiComponent<BoxApiName, BoxConfigurat
super.doStart();
if (boxConnection == null) {
- if (configuration != null) {
- boxConnection = BoxConnectionHelper.createConnection(configuration);
+ if (getConfiguration() != null) {
+ boxConnection = BoxConnectionHelper.createConnection(getConfiguration());
} else {
throw new IllegalArgumentException("Unable to connect, Box component configuration is missing");
}