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

Fix panic condition in Job await logic #929

Merged
merged 3 commits into from
Dec 21, 2019

Conversation

lblackstone
Copy link
Member

@lblackstone lblackstone commented Dec 18, 2019

Proposed changes

For events received by the Job awaiter, explicitly
check that the event has a non-nil Object to avoid
a possible panic.

Related issues (optional)

Fix #922

For events received by the Job awaiter, explicitly
check that the event has a non-nil Object to avoid
a possible panic.
Copy link
Member

@lukehoban lukehoban left a comment

Choose a reason for hiding this comment

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

Do we in general need to guard all conversions to *unstructured.Unstructured like this? Is there a reason a nil check is lot sufficient here?

@lblackstone
Copy link
Member Author

@lukehoban Yeah, the nil check would be easier. I'll switch to that.

@lblackstone lblackstone merged commit f4663dd into master Dec 21, 2019
@pulumi-bot pulumi-bot deleted the lblackstone/fix-job-event-panic branch December 21, 2019 03:13
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.

panic: interface conversion in processJobEvent
3 participants