Skip to content

fix: check if context is nil before calling ctx.Deadline#1630

Merged
matthewdale merged 1 commit intomongodb:v1from
kjaskiewiczz:nil-context-fix
May 8, 2024
Merged

fix: check if context is nil before calling ctx.Deadline#1630
matthewdale merged 1 commit intomongodb:v1from
kjaskiewiczz:nil-context-fix

Conversation

@kjaskiewiczz
Copy link
Copy Markdown
Contributor

Summary

In case of context being nil, the Find method will panic.

Background & Motivation

It's a bug fix.

Signed-off-by: Krzysztof Jaskiewicz <krzysztof.jaskiewicz@northern.tech>
@mongodb-drivers-pr-bot mongodb-drivers-pr-bot Bot added the review-priority-low Low Priority PR for Review: within 3 business days label May 6, 2024
@mongodb-drivers-pr-bot
Copy link
Copy Markdown
Contributor

API Change Report

No changes found!

Copy link
Copy Markdown
Contributor

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the fix @kjaskiewiczz ! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-priority-low Low Priority PR for Review: within 3 business days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants