From 60ff33834e125c2a99b204fffbbab049db3e6d29 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 1 Feb 2020 13:28:05 -0600 Subject: [PATCH] make sure we have an empty command config during initial startup, oops. --- Application/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Main.cs b/Application/Main.cs index f49ea19ab..c37392ce5 100644 --- a/Application/Main.cs +++ b/Application/Main.cs @@ -268,7 +268,7 @@ namespace IW4MAdmin.Application .AddSingleton(new BaseConfigurationHandler("IW4MAdminSettings") as IConfigurationHandler) .AddSingleton(new BaseConfigurationHandler("CommandConfiguration") as IConfigurationHandler) .AddSingleton(_serviceProvider => _serviceProvider.GetRequiredService>().Configuration()) - .AddSingleton(_serviceProvider => _serviceProvider.GetRequiredService>().Configuration()) + .AddSingleton(_serviceProvider => _serviceProvider.GetRequiredService>().Configuration() ?? new CommandConfiguration()) .AddSingleton(_serviceProvider => new Logger("IW4MAdmin-Manager")) .AddSingleton() .AddSingleton()