[GODRIVER-1153] nil pointer asMDoc Created: 19/Jun/19  Updated: 28/Oct/23  Resolved: 11/Jul/19

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

Type: Bug Priority: Major - P3
Reporter: HarryWang Assignee: Go Community User
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

file /x/bsonx/value.go line 408 inside method asMDoc.

mdoc must be a nil pointer and should mdoc = make(MDoc) before the for loop



 Comments   
Comment by Kristofer Brandow (Inactive) [ 11/Jul/19 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/460856.

Comment by Esha Bhargava [ 20/Jun/19 ]

https://github.com/mongodb/mongo-go-driver/pull/165

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