[JAVA-2756] Fix nested collections handling of null values in the PojoCodec Created: 29/Jan/18 Updated: 28/Oct/23 Resolved: 30/Jan/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | POJO |
| Affects Version/s: | 3.5.0 |
| Fix Version/s: | 3.6.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
> Fix for NPE in POJO codec when a POJO has a nested collection property and one of the nested values is null https://github.com/mongodb/mongo-java-driver/pull/446 |
| Comments |
| Comment by Githook User [ 30/Jan/18 ] |
|
Author: {'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley', 'username': 'rozza'}Message: Extra Pojo with nulls values in collections and maps fixes
|
| Comment by Githook User [ 30/Jan/18 ] |
|
Author: {'email': 'robertrua@gmail.com', 'name': 'Rob Rua', 'username': 'robrua'}Message: Check for for null collection elements in POJO CollectionCodec before deferring to codec.encode. This fixes an NPE when a POJO has a nested collection element and one of the nested collection values is null. |
| Comment by Githook User [ 30/Jan/18 ] |
|
Author: {'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley', 'username': 'rozza'}Message: Tests: Extra PojoCodec tests for nulls in collections
|
| Comment by Githook User [ 29/Jan/18 ] |
|
Author: {'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley', 'username': 'rozza'}Message: Extra Pojo with nulls values in collections and maps fixes
|
| Comment by Githook User [ 29/Jan/18 ] |
|
Author: {'email': 'robertrua@gmail.com', 'name': 'Rob Rua', 'username': 'robrua'}Message: Check for for null collection elements in POJO CollectionCodec before deferring to codec.encode. This fixes an NPE when a POJO has a nested collection element and one of the nested collection values is null. |