From c76d84a13ad2bb6e4b3c50add2150a81210131d2 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Thu, 25 Apr 2024 15:09:12 +0200 Subject: [PATCH] fix: logger nil pointer in instrumented_project_command_builder (#4461) --- server/events/project_command_builder.go | 1 + server/server.go | 1 + 2 files changed, 2 insertions(+) diff --git a/server/events/project_command_builder.go b/server/events/project_command_builder.go index 6868635324..ba0bd05b8b 100644 --- a/server/events/project_command_builder.go +++ b/server/events/project_command_builder.go @@ -36,6 +36,7 @@ const ( ) func NewInstrumentedProjectCommandBuilder( + logger logging.SimpleLogging, policyChecksSupported bool, parserValidator *config.ParserValidator, projectFinder ProjectFinder, diff --git a/server/server.go b/server/server.go index 8d05a4633b..4bd22feffe 100644 --- a/server/server.go +++ b/server/server.go @@ -578,6 +578,7 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) { Router: router, } projectCommandBuilder := events.NewInstrumentedProjectCommandBuilder( + logger, policyChecksEnabled, validator, &events.DefaultProjectFinder{},