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

Avoid crash when updating a nil map #3

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

simoncocking
Copy link

A struct has changes including {:added, nil} to a key which is expected to be a map. Later, we get a {:changed, changes} update which causes a crash because we recursively patch(nil, changes) and there's no clause handling (nil, map()).

This adds that clause.

@simoncocking simoncocking self-assigned this Aug 12, 2022
@simoncocking simoncocking merged commit 8cc45cd into master Aug 12, 2022
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.

1 participant