Skip to content

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

Merged
zenhack merged 1 commit into
mainfrom
bugfix/question-release-panic
Jul 29, 2022
Merged

Defend against nil-pointer panics in question.release#269
zenhack merged 1 commit into
mainfrom
bugfix/question-release-panic

Conversation

@lthibault

Copy link
Copy Markdown
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