fix: check if entry returns nil

This commit is contained in:
Derrick Hammer 2024-03-03 11:29:37 -05:00
parent ac3f0f8bdb
commit c6feee1351
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ func (s *S5API) getManifestCids(cid *encoding.CID) ([]*encoding.CID, error) {
lo.ForEach(lo.Values(dir.Directories.Items()), func(d *s5libmetadata.DirectoryReference, _i int) {
entry, err := s.getNode().Services().Registry().Get(d.PublicKey)
if err != nil {
if err != nil || entry == nil {
s.logger.Error("Error getting registry entry", zap.Error(err))
return
}