This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit ac426faea2f132b93d74e7f33ad8343c90179986 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Fri Jan 6 10:21:15 2023 +0100 (chores) camel-pg-replication-slot: avoid risky unboxing --- .../camel/component/pg/replication/slot/PgReplicationSlotConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotConsumer.java b/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotConsumer.java index d911431be3d..ad278b0e62c 100644 --- a/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotConsumer.java +++ b/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotConsumer.java @@ -251,7 +251,7 @@ public class PgReplicationSlotConsumer extends ScheduledPollConsumer { this.pgConnection = this.connection.unwrap(PGConnection.class); this.replicationStream = null; - if (this.endpoint.getAutoCreateSlot() && !this.isSlotCreated()) { + if (Boolean.TRUE.equals(this.endpoint.getAutoCreateSlot()) && !this.isSlotCreated()) { this.createSlot(); } }
