[GODRIVER-675] Nil pointer implementing Zeroer interface should not cause panic Created: 06/Dec/18 Updated: 28/Oct/23 Resolved: 07/Dec/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 0.1.0 |
| Fix Version/s: | 0.2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Go Community User |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
If a type implements the Zeroer interface as a value, it should not panic when a pointer to that value type is provided. Additionally, a nil pointer should always be declared zero for the purposes of the Zeroer interface. |
| Comments |
| Comment by Githook User [ 07/Dec/18 ] |
|
Author: {'name': 'Kris Brandow', 'email': 'kris@mongodb.com', 'username': 'skriptble'}Message: Merge branch 'pr/110' Change-Id: Ibb3f16d108b177ce6b31e6f7b3b4b741dc779c2b |
| Comment by Kristofer Brandow (Inactive) [ 06/Dec/18 ] |
|
Pull Request: https://github.com/mongodb/mongo-go-driver/pull/110. |