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

ensure framer is not nil before accessing customPayload #1385

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

burkad01
Copy link

@burkad01 burkad01 commented Dec 24, 2019

iter.GetCustomPayload() causes a nil panic if an error occurs on the cassandra query as iter.framer is nil. This PR adds a nil check of the framer before accessing customPayload and returns nil in the case where the framer is nil. This is similar to how Warnings() function works.

@burkad01 burkad01 changed the title ensure framer exists before accessing customPayload ensure framer is not nil before accessing customPayload Mar 5, 2020
@cardonator
Copy link

@martin-sucha Is there any way we can get this very small QOL change merged? This bug has existed for nearly 3 years now. If you need an updated PR or something, let me know and I'll throw one together in 2 seconds.

@martin-sucha martin-sucha merged commit e28a3ae into apache:master Aug 31, 2022
@martin-sucha
Copy link
Contributor

Thanks for the nudge. This has slipped through the cracks, sorry about that.

Looks good to me. Merged.

@cardonator
Copy link

Thanks, @martin-sucha ! 🙇

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.

3 participants