forked from TrueCloudLab/frostfs-node
[#1449] object/delete: Fix NPE in collectChain
`head.previous` method returns (nil, nil) if object has no previous neighbor. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
96cdc04705
commit
cc6209e8a0
1 changed files with 4 additions and 2 deletions
|
@ -153,8 +153,10 @@ func (exec *execCtx) collectChain() bool {
|
||||||
exec.status = statusOK
|
exec.status = statusOK
|
||||||
exec.err = nil
|
exec.err = nil
|
||||||
|
|
||||||
withPrev = true
|
withPrev = p != nil
|
||||||
prev = *p
|
if withPrev {
|
||||||
|
prev = *p
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue