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 for panic when building from dictionaries #3543

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

thorfour
Copy link
Contributor

@thorfour thorfour commented Aug 2, 2023

When a dictionary only contains null items it contains an empty dictionary. So it's invalid to retrieve an index from the dictionary if the value is null.

This adds a check on the dictionary len, and in the case of it being 0; it treats it as a null value.

@thorfour thorfour requested a review from a team as a code owner August 2, 2023 17:29
@thorfour thorfour force-pushed the fix-build-flamegraph-empty-dictionaries branch from be40f30 to 2437769 Compare August 2, 2023 17:31
@alwaysmeticulous
Copy link

alwaysmeticulous bot commented Aug 2, 2023

✅ Meticulous spotted zero visual differences across 352 screens tested: view results.

Last updated for commit 1625900. This comment will update as new commits are pushed.

When a dictionary only contains null items it contains an empty
dictionary. So it's invalid to retrieve an index from the dictionary if
the value is null.

This adds a check on the dictionary len, and in the case of it being 0;
it treats it as a null value.
@thorfour thorfour disabled auto-merge August 2, 2023 18:56
@thorfour thorfour merged commit b26f518 into main Aug 2, 2023
35 checks passed
@thorfour thorfour deleted the fix-build-flamegraph-empty-dictionaries branch August 2, 2023 18:57
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.

None yet

2 participants