Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix invalid memory address or nil pointer dereference in RetrieveFeatures #566

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@
}
}

if ts.Options.FS == nil {
ts.Options.FS = storage.FS{}

Check warning on line 365 in run.go

View check run for this annotation

Codecov / codecov/patch

run.go#L365

Added line #L365 was not covered by tests
}

if len(opt.Paths) == 0 {
inf, err := func() (fs.FileInfo, error) {
file, err := opt.FS.Open("features")
Expand Down
Loading