[ 
https://issues.apache.org/jira/browse/TINKERPOP-3140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17932118#comment-17932118
 ] 

Stephen Mallette edited comment on TINKERPOP-3140 at 3/4/25 12:12 AM:
----------------------------------------------------------------------

Fixed with:

https://github.com/apache/tinkerpop/commit/430cc36daf37131950147d352c65d198da3e28f4

showing the standard error with:

{code}
gremlin> g.V().emit()
The repeat()-traversal was not defined: RepeatStep(emit(true),null,until(false))
Type ':help' or ':h' for help.
Display stack trace? [yN]
{code}


was (Author: spmallette):
Fixed with:


showing the standard error with:

{code}
gremlin> g.V().emit()
The repeat()-traversal was not defined: RepeatStep(emit(true),null,until(false))
Type ':help' or ':h' for help.
Display stack trace? [yN]
{code}

> emit() without repeat() throws an NPE
> -------------------------------------
>
>                 Key: TINKERPOP-3140
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3140
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.7.3
>            Reporter: Dave Bechberger
>            Assignee: Stephen Mallette
>            Priority: Minor
>
> I was testing a query and found that using `emit()` without a `repeat()` 
> throws an NPE instead of a syntax error.
> {code:java}
> gremlin> g = TinkerGraph.open().traversal()
> ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
> gremlin> g.V()
> gremlin> g.V().emit()
> java.lang.NullPointerException
> Type ':help' or ':h' for help. {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to