Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5357

Mongo Java Driver throw NPE when update with hint

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.11.2, 5.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Java Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            sitdownrightnow.dev@gmail.com Toàn Nguyễn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: