[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: GODRIVER-657 handle nil in EmptyInterfaceEncodeValue

Change-Id: Icaab6196e15f85c4b069c89116ef95891b9612d4
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/bce51d35070ddee5624080c72bdabc9096fe419b

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