From: sr55 Date: Tue, 19 Feb 2019 21:56:10 +0000 (+0000) Subject: WinGui: Fix a crash for new installs or users upgrading from older versions. Fixes... X-Git-Tag: 1.2.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8d370a9cbd447bc157bc51b70de8e04f3d09beb;p=handbrake WinGui: Fix a crash for new installs or users upgrading from older versions. Fixes #1916 --- diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs index 3c71854a3..e330f9fc0 100644 --- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs +++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs @@ -198,6 +198,10 @@ namespace HandBrakeWPF.Services this.userSettings = deserialisedSettings; } } + else + { + this.userSettings = new Dictionary(); + } // Add any missing / new settings SerializableDictionary defaults = this.GetDefaults();