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: Allow null package name #44

Merged
merged 3 commits into from
Feb 20, 2023
Merged

fix: Allow null package name #44

merged 3 commits into from
Feb 20, 2023

Conversation

amaury1093
Copy link
Contributor

@amaury1093 amaury1093 commented Feb 20, 2023

When integrating with the SDK (cosmos/cosmos-sdk#14886), I encountered a nil reference error. It turns out it was (again) calling *fd.Package.

In this PR, I switched to use the safe getters fd.GetPackage() and fd.GetName(), which don't panic and return empty strings when it's nil.

@amaury1093
Copy link
Contributor Author

I pointed the SDK integration PR cosmos/cosmos-sdk#14886 to this latest commit bdc8ba8. All tests pass, so after merging this PR I'm going to tag v1.4.5

@amaury1093 amaury1093 marked this pull request as ready for review February 20, 2023 10:08
@amaury1093 amaury1093 requested a review from a team as a code owner February 20, 2023 10:08
@amaury1093 amaury1093 merged commit d830bdb into main Feb 20, 2023
@amaury1093 amaury1093 deleted the am/fix-null-names branch February 20, 2023 10:11
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