Skip to content

Commit

Permalink
PWX-29487: Needed fix to avoid nil pointer dereferencing in applyReso…
Browse files Browse the repository at this point in the history
…urces.
  • Loading branch information
diptiranjanpx committed Apr 17, 2023
1 parent 5c8e59a commit 46a57d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/executor/nfs/nfsrestoreresources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46a57d3

Please sign in to comment.