This is an automated email from the ASF dual-hosted git repository. Cole-Greer pushed a commit to branch GValueFollowupTP4 in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 0a830ad91c60ad930f25db62a3cd93cebb5b9017 Author: Cole Greer <[email protected]> AuthorDate: Sun Jun 7 17:23:02 2026 -0700 Fix AnonymousTraversal_OutXnullX after GValue varargs overloads The new Out(GValue<string>, params GValue<string>[]) overload made the bare __.Out(null!) call ambiguous; it had been disambiguated as (string)null!, which passes a single null label (a non-null array element) rather than a null array, so it no longer threw ArgumentNullException. Cast to (string?[])null! to restore the original null-array intent while staying unambiguous. --- .../Traversal/GremlinLangGeneration/GremlinLangGenerationTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/GremlinLangGeneration/GremlinLangGenerationTests.cs b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/GremlinLangGeneration/GremlinLangGenerationTests.cs index 4deeda136c..7107f33ef4 100644 --- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/GremlinLangGeneration/GremlinLangGenerationTests.cs +++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/GremlinLangGeneration/GremlinLangGenerationTests.cs @@ -88,7 +88,7 @@ namespace Gremlin.Net.IntegrationTest.Process.Traversal.GremlinLangGeneration [Fact] public void AnonymousTraversal_OutXnullX() { - Assert.Throws<ArgumentNullException>(() => __.Out((string)null!)); + Assert.Throws<ArgumentNullException>(() => __.Out((string?[])null!)); } } }
