Description
GraphTraversal.optional throws a NPE if no traversal is provided. We should probably throw a friendlier exception with instructions to provide a traversal as an argument.
gremlin> g.V().optional() java.lang.NullPointerException Type ':help' or ':h' for help. Display stack trace? [yN]y java.lang.NullPointerException at org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal.optional(GraphTraversal.java:1316)