From 9a5aea156f55d132393f8825df8b99abbc9a9954 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Sun, 12 Apr 2020 00:16:46 -0700 Subject: [PATCH] Fix a null reference error --- Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 8a25ca4..e2c1b8a 100644 --- a/Program.cs +++ b/Program.cs @@ -17,7 +17,7 @@ namespace Bot { public class Program { - public static Logger Log = new Logger("Core5"); + public static Logger Log; public static double BotVer = ASMInfo.BotVer; public static string BotStr = ASMInfo.BotName; // internal identifier for linden public static MainConfiguration conf; @@ -49,6 +49,8 @@ namespace Bot public static unsafe void Main(string[] args) { Console.WriteLine("Setting up Main Configuration"); + Log = new Logger("BotCore5"); + BotSession.Instance.Logger = Log; ZHash.Instance.NewKey(); ZHash.Instance.Key = "Test"; Console.WriteLine("ZHash (Test): " + ZHash.Instance.Key);