Skip to content

Commit 279a325

Browse files
committed
fix: extra null check extracting YIELD args
1 parent ce4ea65 commit 279a325

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NFalkorDB/Graph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ internal static string BuildQueryBodyForProcedureCall(string procedure, ref IEnu
291291

292292
queryBody.Append(args != null ? $"CALL {procedure}({string.Join(",", args)})" : $"CALL {procedure}()");
293293

294-
if (kwargs != null && kwargs.TryGetValue("y", out var kwargsList) && kwargsList.Count > 0)
294+
if (kwargs != null && kwargs.TryGetValue("y", out var kwargsList) && kwargsList != null && kwargsList.Count > 0)
295295
{
296296
queryBody.Append($" YIELD {string.Join(",", kwargsList)}");
297297
}

0 commit comments

Comments
 (0)