[GODRIVER-657] EmptyInterfaceEncoder should handle nil properly Created: 27/Nov/18 Updated: 28/Oct/23 Resolved: 28/Nov/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 0.1.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Isabella Siu (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When provided with nil the EmptyInterfaceEncodeValue method fails because it attempts to lookup an encoder for nil. Check for nil at the beginning of this method and write a BSON Null if val is nil. |
| Comments |
| Comment by Githook User [ 28/Nov/18 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabella.siu@10gen.com'}Message: Change-Id: Icaab6196e15f85c4b069c89116ef95891b9612d4 |