]> 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>
Tue, 19 Feb 2019 21:57:23 +0000 (21:57 +0000)
win/CS/HandBrakeWPF/Services/UserSettingService.cs

index 836605a2de074578060d9b553546ce88e9a04507..8583787df506c81690cb34b863b7afec54821eca 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