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

Work around Collectors.toMap NPE bug

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: Reactive Streams
    • None

      The recent JAVA-1788 support for returning results from insertions uses Collectors.toMap which contains a bug in the openJDK when collecting null values.

      The perf tests highlight this bug as any bulk inserts of RawBsonDocuments will trigger it on openJDK 8 & 11.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: