[Mono-bugs] [Bug 660294] Setting ComboBox.SelectedText to null crashes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 20 13:53:00 EST 2010



Jerome De Cuyper <jerome.decuyper at gmail.com> changed:

           What    |Removed                     |Added
         AssignedTo|mono-bugs at lists.ximian.com  |jerome.decuyper at gmail.com

--- Comment #1 from Jerome De Cuyper <jerome.decuyper at gmail.com> 2010-12-20 18:52:59 UTC ---
Created an attachment (id=405662)
 --> (http://bugzilla.novell.com/attachment.cgi?id=405662)
Avoid exception when SelectedText is set to null.

After patch is applied, the following code will run without throwing

Text = "Color picker";
ComboBox cb = new ComboBox ();
cb.Text = "Choose a color";
cb.Items.Add ("Green");
cb.Items.Add ("Red");
cb.Items.Add ("Blue");
cb.Items.Add ("Grey");
cb.SelectedText = null; 
Controls.Add (cb);

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list