diff --git a/pkg/local_object_storage/metabase/v2/small.go b/pkg/local_object_storage/metabase/v2/small.go index b07158199..6b34edc0d 100644 --- a/pkg/local_object_storage/metabase/v2/small.go +++ b/pkg/local_object_storage/metabase/v2/small.go @@ -27,7 +27,9 @@ func (db *DB) isSmall(tx *bbolt.Tx, addr *objectSDK.Address) (*blobovnicza.ID, e } blobovniczaID := smallBucket.Get(objectKey(addr.ObjectID())) - id := blobovnicza.NewIDFromBytes(blobovniczaID) + if len(blobovniczaID) == 0 { + return nil, nil + } - return id, nil + return blobovnicza.NewIDFromBytes(blobovniczaID), nil }