From 321ba28b31e07aba844cf232514b5f456e2e3499 Mon Sep 17 00:00:00 2001 From: mircearoata Date: Sat, 24 Feb 2024 22:55:33 +0100 Subject: [PATCH] Fix bindings generation when no ficsit data exists --- backend/logging/redaction.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/logging/redaction.go b/backend/logging/redaction.go index 5c0451eb..1d7598f5 100644 --- a/backend/logging/redaction.go +++ b/backend/logging/redaction.go @@ -48,5 +48,10 @@ func redactPaths(attr slog.Attr) slog.Attr { } func isGamePath(str string) bool { - return ficsitcli.FicsitCLI.GetInstallation(str) != nil + if ficsitcli.FicsitCLI != nil { + return ficsitcli.FicsitCLI.GetInstallation(str) != nil + } + // if ficsitcli is not initialized, we can't know if it's a game path + // so any code running before that should not log game paths + return false }