]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a crash for new installs or users upgrading from older versions. Fixes...
authorsr55 <sr55.hb@outlook.com>
Tue, 19 Feb 2019 21:56:10 +0000 (21:56 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 20 Feb 2019 20:29:36 +0000 (20:29 +0000)
win/CS/HandBrakeWPF/Services/UserSettingService.cs

index 3c71854a30782a64f3a4697b214038eb886e3b36..e330f9fc0e13118cba8a64e04972baa2ba0e2c1d 100644 (file)
@@ -198,6 +198,10 @@ namespace HandBrakeWPF.Services
                         this.userSettings = deserialisedSettings;\r
                     }\r
                 }\r
+                else\r
+                {\r
+                    this.userSettings = new Dictionary<string, object>();\r
+                }\r
 \r
                 // Add any missing / new settings\r
                 SerializableDictionary<string, object> defaults = this.GetDefaults();\r