Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2620

Clean up NullPointerExceptions related to null arguments on property related steps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 3.5.1
    • 3.6.0, 3.5.2
    • process
    • None

    Description

      Probably needs more examination but here are a few examples:

      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]
      

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: