From 0426f7c5d0b6d35794c9e8a49e7720c313cf6404 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Thu, 2 Jun 2022 12:49:12 +0200 Subject: [PATCH] Fix nil pointer (#950) --- server/shared/configFetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/shared/configFetcher.go b/server/shared/configFetcher.go index 433b578c7..216100a07 100644 --- a/server/shared/configFetcher.go +++ b/server/shared/configFetcher.go @@ -53,7 +53,7 @@ func (cf *configFetcher) Fetch(ctx context.Context) (files []*remote.FileMeta, e continue } - if cf.configExtension.IsConfigured() { + if cf.configExtension != nil && cf.configExtension.IsConfigured() { fetchCtx, cancel := context.WithTimeout(ctx, configFetchTimeout) defer cancel() // ok here as we only try http fetching once, returning on fail and success