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

[z9rBzmVK] Make recursiveRebind nullsafe for maps. #613

Merged
merged 2 commits into from
Apr 4, 2024
Merged

Conversation

Lojjs
Copy link
Contributor

@Lojjs Lojjs commented Mar 28, 2024

For maps which in turn contain maps or lists, we would call Collectors.toUnmodifiableMap, which throws a null pointer if the map also contains null values. This should be valid in Cypher.

Inspiration for the fix comes from https://stackoverflow.com/questions/24630963/nullpointerexception-in-collectors-tomap-with-null-entry-values

@Lojjs Lojjs added bug Something isn't working team-cypher-surface dev labels Mar 28, 2024
For maps which in turn contain maps or lists, we would call Collectors.toUnmodifiableMap, which throws a null pointer if the map also contains null values. This should be valid in Cypher.
@Lojjs Lojjs force-pushed the dev-fix-nullpointer branch from 5515cec to 665f324 Compare March 28, 2024 14:53
Copy link
Contributor

@loveleif loveleif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

Co-authored-by: Love Kristofer Leifland <love.leifland@neotechnology.com>
@Lojjs Lojjs merged commit f7538ac into dev Apr 4, 2024
19 of 20 checks passed
@Lojjs Lojjs deleted the dev-fix-nullpointer branch April 4, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev team-cypher-surface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants