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 incorrect error handling to avoid panic. #1988

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

absoludity
Copy link
Contributor

@absoludity absoludity commented Sep 1, 2020

Description of the change

Avoid accessing a nil result by moving to after the error check.

Not sure how that slipped through review.

Example of the panic on #1985
Fixes #1985

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

mmh, I remember something similar already been fixed 🤷‍♂️

@andresmgot andresmgot merged commit 6abe8f3 into vmware-tanzu:master Sep 1, 2020
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.

Upgrading an application gives an error when AppRepository is not on namespace
2 participants