🐛Fix when stats settings is null, fixes #166.

This commit is contained in:
2018-02-23 09:47:41 +00:00
parent af80ebafed
commit 7cba023f84
2 changed files with 5 additions and 4 deletions

View File

@@ -49,7 +49,8 @@ namespace DiscImageChef
Settings.Settings.LoadSettings();
Statistics.LoadStats();
if(Settings.Settings.Current.Stats.ShareStats) Statistics.SubmitStats();
if(Settings.Settings.Current.Stats != null && Settings.Settings.Current.Stats.ShareStats)
Statistics.SubmitStats();
Parser.Default.ParseArguments(args, typeof(AnalyzeOptions), typeof(BenchmarkOptions),
typeof(ChecksumOptions), typeof(CompareOptions), typeof(ConfigureOptions),