[
https://issues.apache.org/jira/browse/TINKERPOP-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15812171#comment-15812171
]
Marko A. Rodriguez commented on TINKERPOP-1521:
-----------------------------------------------
Got it working.
{code}
gremlin> g = TinkerGraph.open().traversal()
==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> g.withSideEffect("a", "marko").addV().property("name", select("a"))
==>v[0]
gremlin> g.V().valueMap()
==>[name:[marko]]
gremlin>
{code}
I added two new test cases to {{AddVertexTest}}. One that uses
{{AddVertexStartStep}} and one that uses {{AddVertexStep}}. Both now pass.
Prior to this ticket, only the later passed.
> Mutating steps don't recognize side-effects
> -------------------------------------------
>
> Key: TINKERPOP-1521
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1521
> Project: TinkerPop
> Issue Type: Bug
> Components: process
> Affects Versions: 3.2.3
> Reporter: Daniel Kuppitz
>
> {code}
> gremlin> g.withSideEffect("a", "marko").addV().property("name", select("a"))
> java.lang.NullPointerException
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)