From c8d733b64bb71cfc4c763256ca9ee06efa62ad6b Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 11 Nov 2018 22:18:44 +0000 Subject: WinGui: Adding Language support to the UI. Adding Partial Translation for German Language (Work in progress) #1597 Also fix Main_SelectPreset error. #1669 --- win/CS/HandBrakeWPF/Services/UserSettingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/Services') 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(); StringCollection stringCollection = new StringCollection(); -- cgit v1.2.3