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

ASF GitHub Bot commented on TINKERPOP-2620:
-------------------------------------------

krlawrence commented on pull request #1483:
URL: https://github.com/apache/tinkerpop/pull/1483#issuecomment-933492430


   Thanks for cleaning these up. Always nice to get rid of bad user facing 
exceptions. VOTE +1


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> Clean up NullPointerExceptions related to null arguments on property related 
> steps
> ----------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2620
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2620
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.5.1
>            Reporter: Stephen Mallette
>            Priority: Minor
>
> Probably needs more examination but here are a few examples:
> {code}
> gremlin> g.V().valueMap('name','age')
> ==>[name:[marko],age:[29]]
> ==>[name:[vadas],age:[27]]
> ==>[name:[lop]]
> ==>[name:[josh],age:[32]]
> ==>[name:[ripple]]
> ==>[name:[peter],age:[35]]
> gremlin> g.V().valueMap('name','age',null)
> ==>[name:[marko],age:[29]]
> ==>[name:[vadas],age:[27]]
> java.lang.NullPointerException
> Type ':help' or ':h' for help.
> Display stack trace? [yN]n
> gremlin> g.V().properties('name','age',null)
> ==>vp[name->marko]
> ==>vp[age->29]
> ==>vp[name->vadas]
> ==>vp[age->27]
> java.lang.NullPointerException
> Type ':help' or ':h' for help.
> Display stack trace? [yN]n
> gremlin> g.V().values('name','age',null)
> ==>marko
> ==>29
> ==>vadas
> ==>27
> java.lang.NullPointerException
> Type ':help' or ':h' for help.
> Display stack trace? [yN]
> gremlin> g.V().elementMap('name','age',null)
> ==>[id:1,label:person,name:marko,age:29]
> ==>[id:2,label:person,name:vadas,age:27]
> java.lang.NullPointerException
> Type ':help' or ':h' for help.
> Display stack trace? [yN]
> {code}



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

Reply via email to