From a7ed65eb2d3ac90764bb79498b6c87cc9ba29632 Mon Sep 17 00:00:00 2001 From: to11mtm <12536917+to11mtm@users.noreply.github.com> Date: Sun, 8 Feb 2026 13:26:46 -0500 Subject: [PATCH] fix index check on trygetvalue --- .../Internal/IntIndexedMessagePackFormatterDict.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Akka.Serialization.MessagePack/Internal/IntIndexedMessagePackFormatterDict.cs b/Akka.Serialization.MessagePack/Internal/IntIndexedMessagePackFormatterDict.cs index c0eec00..5d2dd6d 100644 --- a/Akka.Serialization.MessagePack/Internal/IntIndexedMessagePackFormatterDict.cs +++ b/Akka.Serialization.MessagePack/Internal/IntIndexedMessagePackFormatterDict.cs @@ -32,7 +32,7 @@ public bool TryGet(int i, out IMessagePackFormatter? formatter) //which does a full fence and then checks state. //Shouldn't happen much and only on startup... var f = _formatters; - if (i > f.Length) + if (i >= f.Length) { formatter = default; return false;