Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/474#discussion_r86025437 --- Diff: gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/SubgraphStrategy.java --- @@ -105,21 +105,11 @@ private SubgraphStrategy(final Traversal<Vertex, ?> vertexCriterion, final Trave this.vertexPropertyCriterion = null == vertexPropertyCriterion ? null : vertexPropertyCriterion.asAdmin().clone(); if (null != this.vertexCriterion) - this.addLabelMarker(this.vertexCriterion); + TraversalHelper.applyTraversalRecursively(t -> t.getStartStep().addLabel(MARKER), this.vertexCriterion); --- End diff -- `vertexCriterion` can be `null`. In that case `TraversalHelper.applyTraversalRecursively` and/or the consumer would throw a NPE.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---