[GODRIVER-464] nil check of cursor missing in changeStream Close function Created: 12/Jun/18  Updated: 28/Oct/23  Resolved: 28/Nov/18

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: None
Fix Version/s: 0.1.0

Type: Bug Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: beta
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

if a change stream's `Next` is called and a round trip error is encountered, the cursor gets set to nil and closing it panics on a segfault



 Comments   
Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: Add nil checks for change stream cursors.

GODRIVER-464

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

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