[Mono-bugs] [Bug 80803][Nor] New - NullReferenceException in ErrorProvider.SetError

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 12 04:49:39 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bugzilla at woy.nl.


--- shadow/80803	2007-02-12 04:49:39.000000000 -0500
+++ shadow/80803.tmp.2521	2007-02-12 04:49:39.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 80803
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: bugzilla at woy.nl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: NullReferenceException in ErrorProvider.SetError
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+NullReference exception when calling SetError on ErrorProvider.
+Steps to reproduce the problem:
+1. Create A form with an ErrorProvider and a button
+2. In onclick of the button do errorProvider.SetError( button1, "Error" );
+Actual Results:
+Expected Results:
+Error message with button
+How often does this happen? 
+Additional Information:
+In the GetErrorProperty the check for a null value is after casting it. So
+if there is no errorproperty yet it will always throw a NullReferenceException.

More information about the mono-bugs mailing list