[JAVA-4837] NullPointerException using Document#getList where the BSON array contains null elements Created: 09/Jan/23 Updated: 28/Oct/23 Resolved: 12/Jan/23 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 4.8.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jaspal Jessy | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Backwards Compatibility: | Minor Change |
| Documentation Changes: | Not Needed |
| Description |
|
Please add Null check while in the values while using constructValuesList method
null check for item. PFA
Sample input which causes the exception
|
| Comments |
| Comment by Githook User [ 12/Jan/23 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Allow null elements in Document#getList (#1066)
|
| Comment by Githook User [ 12/Jan/23 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Allow null elements in Document#getList (#1066)
|