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
|
b.Data = data
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if v == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return w.Codec.Unmarshal(data, v)
|
return w.Codec.Unmarshal(data, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user