fix: if map is empty, create an empty one
This commit is contained in:
parent
ea60d8f0cf
commit
6be36feabf
|
@ -145,6 +145,11 @@ func (em *ExtraMetadata) DecodeMsgpack(dec *msgpack.Decoder) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if mapLen == 0 {
|
||||
em.Data = make(map[int]interface{})
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue