diff --git a/neo4j-extensions/custom-procedures/src/main/java/org/sunbird/neo4j/procedures/TraversalProc.java b/neo4j-extensions/custom-procedures/src/main/java/org/sunbird/neo4j/procedures/TraversalProc.java index f4c45db..a8b8b10 100644 --- a/neo4j-extensions/custom-procedures/src/main/java/org/sunbird/neo4j/procedures/TraversalProc.java +++ b/neo4j-extensions/custom-procedures/src/main/java/org/sunbird/neo4j/procedures/TraversalProc.java @@ -279,7 +279,7 @@ public ArrayExpander(Map pathExpander) throws Exception { if (directionsList == null) { throw new Exception("Directions field is mandatory for path expander"); } - Integer nodeCount = Integer.parseInt((String) pathExpander.get("nodeCount")); + Integer pathNodeCount = Integer.parseInt((String) pathExpander.get("nodeCount")); RelationshipType[] types = new RelationshipType[relationTypes.size()]; Direction[] directions = new Direction[directionsList.size()]; @@ -295,7 +295,7 @@ public ArrayExpander(Map pathExpander) throws Exception { } this.directions = directions; this.types = types; - this.nodeCount = nodeCount; + this.nodeCount = pathNodeCount; } }