Skip to content

Commit bb3787e

Browse files
committed
Added nill check for path configuration options.
was throwing a panic when no config was used.
1 parent 6f57ac5 commit bb3787e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root_command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ var (
346346
}
347347

348348
// paths
349-
if config.PathConfigurations.Len() > 0 || len(config.StaticPaths) > 0 || len(config.HARPathAllowList) > 0 || len(config.IgnorePathRewrite) > 0 {
349+
if config.PathConfigurations != nil && config.PathConfigurations.Len() > 0 || len(config.StaticPaths) > 0 || len(config.HARPathAllowList) > 0 || len(config.IgnorePathRewrite) > 0 {
350350
config.CompilePaths()
351351
if len(config.IgnorePathRewrite) > 0 {
352352
printLoadedIgnorePathRewrite(config.IgnorePathRewrite)

0 commit comments

Comments
 (0)