The constructor of BulkOperation prevents using a setter pattern as shown in the repro.
Since the map contains no "upsert" key, it returns null and the cast to Boolean throws the exception. better would be to catch it, set upsert and multi to false or defaults. And let user use setter later.
java.lang.NullPointerException
at io.vertx.ext.mongo.BulkOperation.(BulkOperation.java:57)
Version
Java version 8
vertx mongo client version 4.2.5
Context
The constructor of
BulkOperation
prevents using a setter pattern as shown in the repro.Since the map contains no "upsert" key, it returns null and the cast to Boolean throws the exception. better would be to catch it, set upsert and multi to false or defaults. And let user use setter later.
Do you have a reproducer?