Deferred collection creation throws NPE

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 3.1.1, 3.2.0
    • Affects Version/s: 3.0.3, 3.0.4
    • Component/s: Command Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      com.mongodb.DB.createCollection is documented as deferring the collection creation if the options parameter is null.

      This was the behaviour in 2.x

      3.0.x fail with a NullPointerException because the options parameter is accessed in com.mongodb.DB.getCreateCollectionOperation without a null-check.

              Assignee:
              Jeffrey Yemin
              Reporter:
              Gordon Syme
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: