diff --git a/report/map_helpers.go b/report/map_helpers.go index f42978af4a..8ada366228 100644 --- a/report/map_helpers.go +++ b/report/map_helpers.go @@ -124,7 +124,7 @@ func mapRead(decoder *codec.Decoder, decodeValue func(isNil bool) interface{}) p // undocumented internal APIs apply. func mapWrite(m ps.Map, encoder *codec.Encoder, encodeValue func(*codec.Encoder, interface{})) { z, r := codec.GenHelperEncoder(encoder) - if m == nil { + if m == nil || m.IsNil() { r.EncodeNil() return }