Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/792#discussion_r175199478 --- Diff: gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/TraversalEvaluation/TraversalParser.cs --- @@ -398,7 +398,7 @@ private static ITokenParameter ParseParameter(string text, ref int i) { return ParseNumber(text, ref i); } - if (text.Substring(i, 3).StartsWith("__.")) + if (text.Length >= i + 3 && text.Substring(i, 3).StartsWith("__.")) --- End diff -- Not a big deal, but with the length check included, it can be an equality check, rather than `StartsWith()`.
---