[GODRIVER-1139] cannot decode null into a string type Created: 14/Jun/19  Updated: 20/Jun/19  Resolved: 20/Jun/19

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 1.0.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: orange.jackylee Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

cannot decode null into a string type



 Comments   
Comment by Kristofer Brandow (Inactive) [ 20/Jun/19 ]

Hi jackylee,

If you want to decode null into a Go string you need to have the struct field be a pointer to a string. If you have further questions about this, please send a message on the MongoDB Users Forum Google Group.

Thanks,

Kris

Comment by orange.jackylee [ 18/Jun/19 ]

no reply? 

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