summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-11-11 22:18:44 +0000
committersr55 <[email protected]>2018-11-11 22:18:44 +0000
commitc8d733b64bb71cfc4c763256ca9ee06efa62ad6b (patch)
treea157b89fbb58d2ccbd101d8a95e8e40b2629d5df /win/CS/HandBrakeWPF/Services
parentefcf50c4a0ff04091de5acf01e3502038b7bfe0e (diff)
WinGui: Adding Language support to the UI. Adding Partial Translation for German Language (Work in progress) #1597
Also fix Main_SelectPreset error. #1669
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r--win/CS/HandBrakeWPF/Services/UserSettingService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs
index bcadcadb4..e4ac3c7d6 100644
--- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs
+++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs
@@ -101,7 +101,7 @@ namespace HandBrakeWPF.Services
// Treat String Arrays as StringCollections. TODO refactor upstream code to more traditional string arrays.
object settingValue = this.userSettings[name];
- if (settingValue.GetType() == typeof(JArray))
+ if (settingValue != null && settingValue.GetType() == typeof(JArray))
{
string[] stringArr = ((JArray)settingValue).ToObject<string[]>();
StringCollection stringCollection = new StringCollection();