[JAVA-3065] Although documented as @Nullable, passing a null filter to FindIterable#find throws a NullPointerException Created: 05/Nov/18 Updated: 28/Oct/23 Resolved: 09/Nov/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 3.8.2 |
| Fix Version/s: | 3.9.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eric Tray | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Although documented (https://mongodb.github.io/mongo-java-driver/3.5/javadoc/com/mongodb/async/client/FindIterable.html#filter-org.bson.conversions.Bson-) as @Nullable, passing a null filter to FindIterable#find causes a NullPointerException to be thrown:
at com.mongodb.internal.operation.Operations.createFindOperation(Operations.java:141)
|
| Comments |
| Comment by Githook User [ 07/Nov/18 ] |
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Ensure FindIterable.filter can handle nullable input
|
| Comment by Githook User [ 07/Nov/18 ] |
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Ensure FindIterable.filter can handle nullable input
|
| Comment by Ross Lawley [ 07/Nov/18 ] |
|
Thanks etay2000 for the ticket, that looks like a regression. |