Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protect against nil defref in update resp handling #1025

Merged
merged 2 commits into from
Feb 1, 2023
Merged

Protect against nil defref in update resp handling #1025

merged 2 commits into from
Feb 1, 2023

Conversation

mmcshane
Copy link
Contributor

@mmcshane mmcshane commented Feb 1, 2023

What was changed

Use the getter that protects against that situation.

Why?

If there is an error returned, the response here will be nil and we'll panic unless we protect against dereferencing.

Checklist

  1. Closes

  2. How was this tested:

Found by features test.

  1. Any docs updates needed?

No

If there is an error returned, the response here will be nil so use the
getter that protects against that situation.
@mmcshane mmcshane requested a review from a team as a code owner February 1, 2023 15:04
@mmcshane mmcshane merged commit 18824b6 into temporalio:master Feb 1, 2023
@mmcshane mmcshane deleted the mpm/use-returned-update-ref branch February 1, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants