You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2020/04/09 11:16:00 UTC

[jira] [Closed] (TINKERPOP-2345) NullPointerException when Map key is not found for math()

     [ https://issues.apache.org/jira/browse/TINKERPOP-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Mallette closed TINKERPOP-2345.
---------------------------------------
    Fix Version/s: 3.4.7
                   3.5.0
         Assignee: Stephen Mallette
       Resolution: Fixed

> NullPointerException when Map key is not found for math()
> ---------------------------------------------------------
>
>                 Key: TINKERPOP-2345
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2345
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.4.6
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Minor
>             Fix For: 3.5.0, 3.4.7
>
>
> We could probably have a nicer error here:
> {code}
> gremlin> g.V().hasLabel('person').elementMap().as('x').math('x').by('aged')
> java.lang.NullPointerException
> Type ':help' or ':h' for help.
> Display stack trace? [yN]y
> java.lang.NullPointerException
> 	at org.apache.tinkerpop.gremlin.process.traversal.step.map.MathStep.map(MathStep.java:73)
> 	at org.apache.tinkerpop.gremlin.process.traversal.step.map.MathStep.map(MathStep.java:47)
> 	at org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep.processNextStart(MapStep.java:37)
> 	at org.apache.tinkerpop.gremlin.process.traversal.step.map.MathStep.processNextStart(MathStep.java:63)
> 	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
> 	at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:197)
> 	at org.apache.tinkerpop.gremlin.console.Console$_closure3.doCall(Console.groovy:255)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)