From 51d162e5836011448f60bc9bb6a4b98c68e7fe12 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 13 Dec 2024 15:12:38 +0000 Subject: [PATCH] googlephotos: fix nil pointer crash on upload - fixes #8233 --- backend/googlephotos/googlephotos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/googlephotos/googlephotos.go b/backend/googlephotos/googlephotos.go index 33ee41a2e..2a2c7eb49 100644 --- a/backend/googlephotos/googlephotos.go +++ b/backend/googlephotos/googlephotos.go @@ -1168,7 +1168,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op errors := make([]error, 1) results := make([]*api.MediaItem, 1) err = o.fs.commitBatch(ctx, []uploadedItem{uploaded}, results, errors) - if err != nil { + if err == nil { err = errors[0] info = results[0] }