From 4d6c4cf9f8f069fabb2a21f05657cb5a07af0005 Mon Sep 17 00:00:00 2001 From: Cesar <137245636+nytzuga@users.noreply.github.com> Date: Tue, 31 Oct 2023 23:21:27 -0300 Subject: [PATCH] Update codec/reflectcodec/type_codec.go Co-authored-by: Dan Laine Signed-off-by: Cesar <137245636+nytzuga@users.noreply.github.com> --- codec/reflectcodec/type_codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/reflectcodec/type_codec.go b/codec/reflectcodec/type_codec.go index 4f29f9f77c5e..9ce367304cbf 100644 --- a/codec/reflectcodec/type_codec.go +++ b/codec/reflectcodec/type_codec.go @@ -85,7 +85,7 @@ func (c *genericCodec) Size(value interface{}) (int, error) { return 0, errMarshalNil // can't marshal nil } - size, _, err := c.size(reflect.ValueOf(value), false) + size, _, err := c.size(reflect.ValueOf(value), false /*nullable*/) return size, err }