[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'

GODRIVER-675
GODRIVER-676

Change-Id: Ibb3f16d108b177ce6b31e6f7b3b4b741dc779c2b
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/5004250aa306ad1b460ee6625eb42a4baf49f24c

Comment by Kristofer Brandow (Inactive) [ 06/Dec/18 ]

Pull Request: https://github.com/mongodb/mongo-go-driver/pull/110.

Generated at Thu Feb 08 08:34:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.