From 2aa51d3add2922296c8e0faa521e2de826f683c8 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 11 Dec 2020 14:48:27 +0300 Subject: [PATCH] v2/object: Fix NPE in SplitInfo.GetObject Signed-off-by: Leonard Lyubich --- v2/object/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/object/types.go b/v2/object/types.go index 3441958..d192715 100644 --- a/v2/object/types.go +++ b/v2/object/types.go @@ -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 }