Otavio Rodolfo Piske created CAMEL-16179:
--------------------------------------------
Summary: NPE during MongoDB initialization
Key: CAMEL-16179
URL: https://issues.apache.org/jira/browse/CAMEL-16179
Project: Camel
Issue Type: Bug
Components: camel-mongodb
Affects Versions: 3.8.0
Reporter: Otavio Rodolfo Piske
Under some conditions, the initialization of the MongoDB component may throw an
NPE because the {{mongoConnection}} is null at this point:
[https://github.com/apache/camel/blob/camel-3.8.x/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java#L235]
And it is null at this point because the doStart is not being called for the
source connector:
[https://github.com/apache/camel/blob/camel-3.8.x/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java#L323]
This seems to lead to the following issue on the Camel Kafka Connector:
https://github.com/apache/camel-kafka-connector/issues/974
--
This message was sent by Atlassian Jira
(v8.3.4#803005)