orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

NullPointerException is thrown while calling org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext

Open vivekjustthink opened this issue 3 years ago • 0 comments

OrientDB Version: 3.0.30

Java Version: 1.8.0_202

OS: MacOS Monterey (V 12.4)

Code : GraphTraversal<Vertex, Vertex> ft = getGTS().V(myObject.getVertex()).out(tag); return ft!=null && ft.hasNext();

Expected behavior

ft.hasNext() to be returned true or false

Actual behavior

throwing NullPointer exception Screenshot 2022-07-09 at 1 05 37 PM

Steps to reproduce

  1. Create a Vertex
  2. Point the traversal to the vertex
  3. Look for the connected Vertexes when none are present.

vivekjustthink avatar Jul 09 '22 07:07 vivekjustthink