Try to fix conflict

This commit is contained in:
Your Name 2019-02-20 13:35:58 +01:00
parent c879b80e85
commit 8b465d0c42
1 changed files with 54 additions and 46 deletions

View File

@ -668,6 +668,8 @@ namespace Core.Main
// Check if the program is enabled
if (this.PTMagicConfiguration.GeneralSettings.Application.IsEnabled)
{
try
{
if (this.PTMagicConfiguration.GeneralSettings.Application.TestMode) this.Log.DoLogInfo("TESTMODE ENABLED - No files will be changed!");
@ -704,6 +706,12 @@ namespace Core.Main
this.Log.DoLogInfo("No FreeCurrencyConverterApi KEY specified, you can only use USD; apply for a key at: https://freecurrencyrates.com/en");
}
}
catch (System.NullReferenceException ex)
{
this.Log.DoLogError("PTM failed to read the Config File. That means something in the File is either missing or incorrect. If this happend after an update please take a look at the release notes at: https://github.com/PTMagicians/PTMagic/releases");
}
}
else
{