Skip to content

Commit

Permalink
fix: Traversal.graph is empty in StepStrategy.apply() with `count().i…
Browse files Browse the repository at this point in the history
…s(0)`

This PR fix: traversal.getGraph() is empty in StepStrategy.apply() method
    `VertexStepStrategy.apply(Traversal.Admin<?, ?> traversal)`
for the following gremlin:
```
    g.V(3).repeat(inE('child').outV().simplePath())
      .until(or(inE().count().is(0),loops().is(eq(2))))
      .path()
```
  • Loading branch information
javeme committed Jun 21, 2022
1 parent 0a57213 commit a8f153c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public void apply(final Traversal.Admin<?, ?> traversal) {
} else {
inner = __.identity().asAdmin();
}
traversal.getGraph().ifPresent(graph -> inner.setGraph(graph));
if (prev != null)
TraversalHelper.replaceStep(prev, new NotStep<>(traversal, inner), traversal);
else
Expand Down

0 comments on commit a8f153c

Please sign in to comment.