OSDN Git Service

NotifyPanel.LoadConfigメソッドでArgumentNullExceptionが発生する問題の修正
authorKimura Youichi <kim.upsilon@bucyou.net>
Mon, 6 Oct 2014 04:30:43 +0000 (13:30 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 11 Oct 2014 15:15:47 +0000 (00:15 +0900)
https://sourceforge.jp/ticket/browse.php?group_id=6526&tid=34439

OpenTween/Setting/Panel/NotifyPanel.cs

index 7e9ebdf..5f91632 100644 (file)
@@ -50,7 +50,9 @@ namespace OpenTween.Setting.Panel
             this.CheckFavEventUnread.Checked = settingCommon.FavEventUnread;
 
             this.SoundFileListup();
-            var soundFileIdx = this.ComboBoxEventNotifySound.Items.IndexOf(settingCommon.EventSoundFile);
+
+            var soundFile = settingCommon.EventSoundFile ?? "";
+            var soundFileIdx = this.ComboBoxEventNotifySound.Items.IndexOf(soundFile);
             if (soundFileIdx != -1)
                 this.ComboBoxEventNotifySound.SelectedIndex = soundFileIdx;