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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.9.0
    • Affects Version/s: None
    • Component/s: API
    • None

      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.

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

              Created:
              Updated:
              Resolved: