[
https://issues.apache.org/jira/browse/TINKERPOP-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17079204#comment-17079204
]
ASF GitHub Bot commented on TINKERPOP-2345:
-------------------------------------------
spmallette commented on pull request #1272: TINKERPOP-2345 Improved error
message for bad value for math()
URL: https://github.com/apache/tinkerpop/pull/1272
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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
> Priority: Minor
>
> 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)