v2/object: Fix NPE in SplitInfo.GetObject

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-11 14:48:27 +03:00
parent 1bc91466aa
commit 2aa51d3add

View file

@ -651,7 +651,7 @@ func (o *Object) SetPayload(v []byte) {
}
func (s *SplitInfo) GetSplitID() []byte {
if s.splitID != nil {
if s != nil {
return s.splitID
}