Skip to content

Commit

Permalink
fix invalid memory address or nil pointer dereference when calling Te…
Browse files Browse the repository at this point in the history
…stSuite RetrieveFeatures (#566)

Co-authored-by: Cornel Damian <cornel.damian@adswizz.com>
  • Loading branch information
corneldamian and Cornel Damian committed Apr 8, 2024
1 parent fd3e0d5 commit 10407bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.go
Expand Up @@ -361,6 +361,10 @@ func (ts TestSuite) RetrieveFeatures() ([]*models.Feature, error) {
}
}

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

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

0 comments on commit 10407bc

Please sign in to comment.