From bb3787e67fc6cc1f0bd1cb42f34484b00425f454 Mon Sep 17 00:00:00 2001 From: quobix Date: Thu, 4 Jul 2024 10:38:37 -0400 Subject: [PATCH] Added nill check for path configuration options. was throwing a panic when no config was used. --- cmd/root_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root_command.go b/cmd/root_command.go index 32cf32f..8f86caa 100644 --- a/cmd/root_command.go +++ b/cmd/root_command.go @@ -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)