[Mono-bugs] [Bug 81771][Wis] Changed - Null object reference after ListControl.DataSource is set to null

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 12 00:29:55 EDT 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 albright at wesay.org.


--- shadow/81771	2007-07-11 23:51:19.000000000 -0400
+++ shadow/81771.tmp.14193	2007-07-12 00:29:55.000000000 -0400
@@ -63,6 +63,13 @@
 if (data_source == null) {
 	data_manager = null;
+------- Additional Comments From albright at wesay.org  2007-07-12 00:29 -------
+Actually even with the above code, it still fails, since
+ConnectToDataSource gets called twice with the same data_source (thus
+registering the events twice but only deregistering them once), once
+from the DataSource getter and once from OnBindingContextChanged
+(triggered in the BindingContext getter in ConnectToDataSource).

More information about the mono-bugs mailing list