From c99462789138159261c4d8a09cb8bb90d119aace Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 19 Feb 2019 21:56:10 +0000 Subject: [PATCH] WinGui: Fix a crash for new installs or users upgrading from older versions. Fixes #1916 --- win/CS/HandBrakeWPF/Services/UserSettingService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs index 836605a2d..8583787df 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(); -- 2.40.0