notifications: Fix nullpointer problems

Closes: #6541
This commit is contained in:
Daniel Swärd
2023-06-16 13:41:57 +02:00
parent 997cf54853
commit a3ee6f3648
2 changed files with 7 additions and 1 deletions
@@ -40,6 +40,11 @@ func Server(cfg *config.Config) *cli.Command {
Action: func(c *cli.Context) error {
logger := logging.Configure(cfg.Service.Name, cfg.Log)
err := grpc.Configure(grpc.GetClientOptions(&cfg.GRPCClientTLS)...)
if err != nil {
return err
}
gr := run.Group{}
ctx, cancel := func() (context.Context, context.CancelFunc) {