-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 3.0.3, 3.0.4
-
Component/s: Command Operations
-
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.