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

NullPointerException in org.bson.codecs.Encoder.encode

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.11.1
    • Async

    Description

      I have a class that implements Codec<T>. In the `encode` method there was a NPE thrown but there was nothing in the logs. It took me a few hours to figure it out. That should be fixed so other people are not hit by this like me.

      I'm using the latest version of the async Java driver.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            praveenmay03@gmail.com Praveen D
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: