neo4j / apoc

Apache License 2.0
81 stars 27 forks source link

[z9rBzmVK] Make recursiveRebind nullsafe for maps. #613

Closed Lojjs closed 4 months ago

Lojjs commented 5 months ago

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