Skip to content

Commit

Permalink
Added nill check for path configuration options.
Browse files Browse the repository at this point in the history
was throwing a panic when no config was used.
  • Loading branch information
daveshanley committed Jul 4, 2024
1 parent 6f57ac5 commit 52e15ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ var (
}

// paths
if config.PathConfigurations.Len() > 0 || len(config.StaticPaths) > 0 || len(config.HARPathAllowList) > 0 || len(config.IgnorePathRewrite) > 0 {
if config.PathConfigurations != nil && config.PathConfigurations.Len() > 0 || len(config.StaticPaths) > 0 || len(config.HARPathAllowList) > 0 || len(config.IgnorePathRewrite) > 0 {
config.CompilePaths()
if len(config.IgnorePathRewrite) > 0 {
printLoadedIgnorePathRewrite(config.IgnorePathRewrite)
Expand Down

0 comments on commit 52e15ff

Please sign in to comment.