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

SR: prevent panic when no decode function is registered #745

Merged
merged 1 commit into from
May 27, 2024

Conversation

lovromazgon
Copy link
Contributor

A small fix for a possible panic when a type is registered without a decode function. The test kinda hides this possibility, because Serde has a default DecodeFn option. This case is more likely to hit when Serde is instantiated without that option.

I removed the decode test case for schema ID 100, as it was the same as the one for ID 99, instead I added one with ID 101 which has a registered type, but no decode function.

@twmb twmb merged commit 1c152ac into twmb:master May 27, 2024
5 checks passed
@twmb
Copy link
Owner

twmb commented May 27, 2024

Thanks!

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