You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2021/02/10 15:59:00 UTC
[jira] [Created] (CAMEL-16179) NPE during MongoDB initialization
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)