Skip to content

Commit 5b7eb62

Browse files
committed
Remove null entries from config map
1 parent 62512be commit 5b7eb62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cypher-aggregation/src/main/java/org/neo4j/gds/projection/ValueMapWrapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.neo4j.values.storable.TextArray;
3131
import org.neo4j.values.storable.TextValue;
3232
import org.neo4j.values.storable.Value;
33+
import org.neo4j.values.storable.Values;
3334
import org.neo4j.values.virtual.MapValue;
3435

3536
import java.util.ArrayList;
@@ -52,7 +53,7 @@ public static ValueMapWrapper create(@Nullable MapValue config) {
5253
}
5354
Map<String, AnyValue> configMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
5455
config.foreach((key, value) -> {
55-
if (value != null) {
56+
if (value != null && value != Values.NO_VALUE) {
5657
configMap.put(key, value);
5758
}
5859
});

0 commit comments

Comments
 (0)