Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.8.0
-
None
-
Unknown
Description
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
Attachments
Issue Links
- links to