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

Defend against nil-pointer panics in question.release #269

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

lthibault
Copy link
Collaborator

I was going to call this "Fix nil pointer panic due to nil question.release", but I'm not unsure whether this is what actually solved the problem I was experiencing in my application. However, my application was panicking due to a nil question.release function, so the proposed changes might still be reasonable defensive-programming measures.

I grepped for .release == nil, and there doesn't seem to be any code that depends on the nullability of this field, so I think this should be correct. A cross-check would be most welcome.

@lthibault lthibault requested a review from zenhack July 28, 2022 22:34
@zenhack zenhack merged commit 4e56003 into main Jul 29, 2022
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