PeterTh / gedosato

The Generic DownSampling Tool
GNU General Public License v3.0
467 stars 166 forks source link

GeDoSaTo crashes when entering a non existent profile in filter #178

Closed ggpiucco closed 10 years ago

ggpiucco commented 10 years ago

DESCRIPTION When GeDoSaTo can't find a profile with the string entered in the text editor filter, the program crashes.

v0.14.1501

STEPS Open GeDoSaTo Click Edit settings Click on filter Enter a string that does not match any profiles

EXPECTED Message that says no profile found with the filter

ACTUAL GeDoSaTo crashes

\ Exception Text ** System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'. Parameter name: SelectedIndex at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value) at GeDoSaToTool.TextForm.filterTextBox_TextChanged(Object sender, EventArgs e) at System.Windows.Forms.Control.OnTextChanged(EventArgs e) at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e) at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m) at System.Windows.Forms.TextBoxBase.WndProc(Message& m) at System.Windows.Forms.TextBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

ggpiucco commented 10 years ago

gedosato-crash-filter01

PeterTh commented 10 years ago

Please re-report this issue here: https://github.com/PeterTh/GeDoSaToTool/