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

format/diff: fix panic with null map in NestedType attrs #29206

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

mildwonkey
Copy link
Contributor

writeNestedAttrDiff wasn't prepared to handle entirely null maps. This commit adds a test (which reproduced the panic before the fix) and the same map handling that's in the nested block format printer, which treats null maps as empty maps.

Fixes #29205

@mildwonkey mildwonkey added the 1.0-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Jul 21, 2021
@mildwonkey mildwonkey requested a review from a team July 21, 2021 12:47
@github-actions
Copy link
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.0-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash using map nesting type on nested attributes
2 participants