From 6cc375985f807d150446889b0fab6e1d50b8129a Mon Sep 17 00:00:00 2001 From: Har01d Date: Wed, 25 Feb 2026 19:36:39 +0800 Subject: [PATCH] check link is nil --- internal/op/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/op/fs.go b/internal/op/fs.go index 5116bbef..33579df9 100644 --- a/internal/op/fs.go +++ b/internal/op/fs.go @@ -259,7 +259,7 @@ func Link(ctx context.Context, storage driver.Driver, path string, args model.Li } link, err := storage.Link(ctx, file, args) - if err != nil { + if err != nil || link == nil { return nil, errors.Wrapf(err, "failed get link") } ol := &objWithLink{link: link, obj: file}