diff --git a/Application/Main.cs b/Application/Main.cs index e9a855171..a683a8653 100644 --- a/Application/Main.cs +++ b/Application/Main.cs @@ -388,6 +388,13 @@ private static void ConfigureServices(IServiceCollection serviceCollection) }; var masterRestClient = RestClient.For(httpClient); var translationLookup = Configure.Initialize(Utilities.DefaultLogger, masterRestClient, appConfig); + + if (appConfig == null) + { + appConfig = (ApplicationConfiguration) new ApplicationConfiguration().Generate(); + appConfigHandler.Set(appConfig); + appConfigHandler.Save().GetAwaiter().GetResult(); + } // register override level names foreach (var (key, value) in appConfig.OverridePermissionLevelNames)