don't panic on nil
This commit is contained in:
parent
6358b9277d
commit
e697912ee5
@ -64,6 +64,9 @@ func (w wrapCodec) Unmarshal(data []byte, v interface{}) error {
|
||||
b.Data = data
|
||||
return nil
|
||||
}
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
return w.Codec.Unmarshal(data, v)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user