[
https://issues.apache.org/jira/browse/TINKERPOP-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16164888#comment-16164888
]
ASF GitHub Bot commented on TINKERPOP-1746:
-------------------------------------------
Github user dkuppitz commented on the issue:
https://github.com/apache/tinkerpop/pull/711
Which scenario would end up throwing this exception? Tried this:
```
gremlin> g = TinkerFactory.createModern().traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.V().repeat().times(2)
java.lang.NullPointerException
```
... but it's obviously still a NPE thrown in [line
67](https://github.com/apache/tinkerpop/blob/53db262511e9d84b1262522fc841ded825df4fc6/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java#L67).
> Better error message on wrong ordering of emit()/until()/has()
> --------------------------------------------------------------
>
> Key: TINKERPOP-1746
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1746
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.2.5
> Environment: TinkerPop 3.2.5
> Reporter: DOAN DuyHai
> Priority: Trivial
>
> {code}
> gremlin> g.withSack([] as Set).
> ......1> V().
> ......2> emit().
> ......3> has("station", "name", "South Kensington").
> ......4> repeat(bothE("connectedTo").sack{s,v -> s.add(v); return
> s;}.by("line").otherV().simplePath()).times(2).
> ......5> sack()
> NullPointerException
> Type ':help' or ':h' for help.
> Display stack trace? [yN]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)