Skip to content

Commit

Permalink
Fix NullReferenceException when outputting CustomObjectCommand error …
Browse files Browse the repository at this point in the history
…messages (#60)

Co-authored-by: Tal Zaccai <talzacc@microsoft.com>
  • Loading branch information
argsno and TalZaccai authored Mar 21, 2024
1 parent cc1fce4 commit 782372f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/server/Resp/RespServerSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ private bool ProcessOtherCommands<TGarnetApi>(int count, ref TGarnetApi storageA

if (count - 1 != ocmd.NumKeys + ocmd.NumParams)
{
while (!RespWriteUtils.WriteDirect(Encoding.ASCII.GetBytes($"-ERR Invalid number of parameters, expected {cmd.NumKeys + cmd.NumParams}, actual {count - 1}\r\n"), ref dcurr, dend))
while (!RespWriteUtils.WriteDirect(Encoding.ASCII.GetBytes($"-ERR Invalid number of parameters, expected {ocmd.NumKeys + ocmd.NumParams}, actual {count - 1}\r\n"), ref dcurr, dend))
SendAndReset();
return true;
}
Expand Down

0 comments on commit 782372f

Please sign in to comment.