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

null write concern should throw IllegalArgumentException for all methods that take one

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.9.0
    • API
    • None

    Description

      Passing a null write concern to any update method causes the connection pool to be emptied, due to an NPE thrown in DBTCPConnector.say when dereferencing the write concern and the subsequent exception handling. Should fix this by throwing IllegalArgumentException from all public update methods that take a write concern if the write concern is null.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: