Summary
Update with hint throw NPE.
Driver version 4.11.1
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
How to Reproduce
Bug reproduction repository:
https://github.com/sitdownrightnow2552/mongo-java-driver-update-with-hint-npe-error-reproduction
Additional Background
I was using spring MongoTemplate and encountered this bug. The bug can be reproduce using native MongoClient.