I wrote this function ``` tailrec fun find( ...
# announcements
r
I wrote this function
Copy code
tailrec fun find(
        filter: Bson? = null,
        projection: Bson? = null,
        sort: Bson? = null,
        limit: Int? = null,
        tries: Int = 3,
        delayBetweenTries: Long = 2500L
    ): Iterable<T> {
I get a
java.lang.NullPointerException
on the
delayBetweenTries
line, the first
at
line of the stacktrace says
MongoFinder.find$default(MongoFinder.kt:40)
I have no idea why this occurs, here's the call:
Copy code
val channels = mongoFinder.find(projection = include("title", "externalId", "platform"))