NullPointerException is thrown while calling org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
Research direction
Start at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext and trace the traversal created by getGTS().V(myObject.getVertex()).out(tag). Reproduce the case where the vertex has no connected vertices, then identify why hasNext throws a NullPointerException instead of returning a boolean. Done means the reported traversal behaves as expected for that case.
Written by the indexing model from the issue text.
Description
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

Steps to reproduce
- Create a Vertex
- Point the traversal to the vertex
- Look for the connected Vertexes when none are present.
- Dominant language
- Java
- Stars
- 5k
- Forks
- 868
- Avg merge
- 15h 6m
- Merged PRs (30d)
- 18
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from orientechnologies/orientdb
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
orientechnologies/orientdb#9317 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
orientechnologies/orientdb#10865 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
orientechnologies/orientdb#10864 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
orientechnologies/orientdb#10856 · 7 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
orientechnologies/orientdb#10813 · 1 comment ·
All issues in orientechnologies/orientdb
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·