Summary
Mongo Kotlin driver distinct function for MongoCollection does not allow nullable values to be handled
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
Driver version 4.11.0
How to Reproduce
i have a simply class that has a nullable field in it and if i run the distinct function from mongoCollection on this field it throws a null pointer acception on the wrapper.hasNext
i get that a distinct maybe should not return a null value in its list but in my opinion its totally possible for a nullvalue to exist in the database that should behandeld in a way instead of crashing
Additional Background
Please provide any additional background information that may be helpful in diagnosing the bug.