Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 9435623

Browse files
committed
only load property if it's not null
1 parent 109b97d commit 9435623

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/org/neo4j/graphalgo/core/GraphDimensions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ public GraphDimensions apply(final KernelTransaction transaction) throws Runtime
126126
if(setup.nodePropertyMappings.length > 0) {
127127
nodePropIds = new int[setup.nodePropertyMappings.length];
128128
for (int i = 0; i < setup.nodePropertyMappings.length; i++) {
129-
nodePropIds[i] = propertyKey(tokenRead, true, setup.nodePropertyMappings[i].propertyKey);
129+
String propertyKey = setup.nodePropertyMappings[i].propertyKey;
130+
nodePropIds[i] = propertyKey(tokenRead, propertyKey != null, propertyKey);
130131
}
131132
} else {
132133
nodePropIds = new int[0];

0 commit comments

Comments
 (0)