From 46a57d3a8824f8ac872e0c4bd2bf61548690004e Mon Sep 17 00:00:00 2001 From: diptiranjan Date: Mon, 17 Apr 2023 09:42:32 +0530 Subject: [PATCH] PWX-29487: Needed fix to avoid nil pointer dereferencing in applyResources. --- pkg/executor/nfs/nfsrestoreresources.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/executor/nfs/nfsrestoreresources.go b/pkg/executor/nfs/nfsrestoreresources.go index 325b27172..9c40bf74b 100644 --- a/pkg/executor/nfs/nfsrestoreresources.go +++ b/pkg/executor/nfs/nfsrestoreresources.go @@ -133,7 +133,8 @@ func restoreResources( return err } - if err := applyResources(restore, rb, objects, nil); err != nil { + var opts resourcecollector.Options + if err := applyResources(restore, rb, objects, &opts); err != nil { return err } return nil