Skip to content

fix: null string to bytes conversions#5492

Merged
mhilton merged 1 commit intomasterfrom
mh-typeconv-bytes-null
Jun 13, 2024
Merged

fix: null string to bytes conversions#5492
mhilton merged 1 commit intomasterfrom
mh-typeconv-bytes-null

Conversation

@mhilton
Copy link
Contributor

@mhilton mhilton commented Jun 12, 2024

Avoid a panic if the bytes conversion function receives a string typed NULL value. The function now returns the same error as for other NULL values.

Checklist

Dear Author 👋, the following checks should be completed (or explicitly dismissed) before merging.

  • ✏️ Write a PR description, regardless of triviality, to include the value of this PR
  • 🔗 Reference related issues
  • 🏃 Test cases are included to exercise the new code
  • 🧪 If new packages are being introduced to stdlib, link to Working Group discussion notes and ensure it lands under experimental/
  • 📖 If language features are changing, ensure docs/Spec.md has been updated

Dear Reviewer(s) 👋, you are responsible (among others) for ensuring the completeness and quality of the above before approval.

Avoid a panic if the bytes conversion function receives a string
typed NULL value. The function now returns the same error as for
other NULL values.
@mhilton mhilton requested a review from a team as a code owner June 12, 2024 17:03
@mhilton mhilton merged commit 6412246 into master Jun 13, 2024
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