Description
It is possible to get an exception when pressing the "Edit site"button in the MyNews plugin.
To reproduce:
* Start Configuration program
* Select MyNews and press Setup
* Note that no feeds are selected (this seems to be the problem)
* Press "Edit site" button
* Exception occurs
Second way
* Start Configuration program
* Select MyNews and press Setup
* Click on a newsfeed to select it
* Add or edit the feed (details screen comes up)
* Save the feed (details screen closes)
* Note that no feeds are selected
* Press "Edit site" button
* Exception occurs
The exception is:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Windows.Forms.ItemArray.GetEntryObject(Int32 virtualIndex, Int32 stateMask)
at System.Windows.Forms.SelectedIndexCollection.get_Item(Int32 index)
at GUIRSSFeed.SetupForm.editSite(Object obj, EventArgs ea)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
To reproduce:
* Start Configuration program
* Select MyNews and press Setup
* Note that no feeds are selected (this seems to be the problem)
* Press "Edit site" button
* Exception occurs
Second way
* Start Configuration program
* Select MyNews and press Setup
* Click on a newsfeed to select it
* Add or edit the feed (details screen comes up)
* Save the feed (details screen closes)
* Note that no feeds are selected
* Press "Edit site" button
* Exception occurs
The exception is:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Windows.Forms.ItemArray.GetEntryObject(Int32 virtualIndex, Int32 stateMask)
at System.Windows.Forms.SelectedIndexCollection.get_Item(Int32 index)
at GUIRSSFeed.SetupForm.editSite(Object obj, EventArgs ea)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)