Fix a crash due to null pointer immediately after updating

This commit is contained in:
Zontreck 2020-06-29 01:48:30 -07:00
parent 36e8562feb
commit 6ead57da24
2 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@ using System.Reflection;
[assembly: AssemblyCompany("ZNI")]
[assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)]
[assembly: AssemblyCopyright("© 2020 Tara Piccari")]
[assembly: AssemblyFileVersion("5.3.913")]
[assembly: AssemblyFileVersion("5.3.914")]
[assembly: AssemblyDescription("Second Life Bot - BotCore5")]
@ -15,7 +15,7 @@ namespace Bot.Assemble
public class ASMInfo
{
public static string BotName = "ZBotCore";
public static string BotVer = "5.3.913";
public static string BotVer = "5.3.914";
public static string GitPassword
{
get

View file

@ -244,12 +244,6 @@ namespace Bot
}
if (LoggedIn)
{
if (File.Exists("XUP"))
{
File.Delete("XUP");
MessageFactory.Post(Destinations.DEST_LOCAL, $"Updated to version {BotStr} - {BotVer}", UUID.Zero);
}
// Setup BotSession Singleton!
@ -398,6 +392,12 @@ namespace Bot
IntPtr addr = (IntPtr)ptr;
MessageFactory.Post(Destinations.DEST_LOCAL, "Generic Exception Caught: " + Msg + " [0x0A, 0x" + addr.ToString("x") + "]\nSTACK: " + STACK, UUID.Zero);
}
if (File.Exists("XUP"))
{
File.Delete("XUP");
MessageFactory.Post(Destinations.DEST_LOCAL, $"Updated to version {BotStr} - {BotVer}", UUID.Zero);
}
}
foreach (IProgram plugin in g_ZPrograms)