Nullpointer exception when creating Kafka sink connector

In the end, I got my sink connector working with an Atlas cluster after I installed confluent 6.1.0 and mongodb kafka connector 1.3.0 instead of 1.4.0.