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

interp: fix nil value check in case of interface #1028

Merged
merged 3 commits into from
Feb 2, 2021
Merged

Conversation

mvertes
Copy link
Member

@mvertes mvertes commented Feb 1, 2021

A wrong logic was leading to panic in recover. Simplify the
workflow for clarity.

Fixes #1022.

@mvertes mvertes added bug Something isn't working area/core labels Feb 1, 2021
@mvertes mvertes added this to the v0.9.x milestone Feb 1, 2021
func main() {
defer func() {
r := recover()
if r != nil { // <- panic here
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove the comment now that the issue is fixed?

A wrong logic was leading to panic in recover. Simplify the
workflow for clarity.

Fixes #1022.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic on recover (panic: reflect: call of reflect.Value.IsNil on struct Value)
3 participants