Author: lluis
Date: 2005-04-08 17:27:41 -0400 (Fri, 08 Apr 2005)
New Revision: 42708

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/DataSourceView.cs
Log:
2005-04-08  Lluis Sanchez Gual <[EMAIL PROTECTED]>

        * DataSourceView.cs: Added null check.



Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-04-08 20:56:45 UTC 
(rev 42707)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-04-08 21:27:41 UTC 
(rev 42708)
@@ -1,3 +1,7 @@
+2005-04-08  Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+       * DataSourceView.cs: Added null check.
+
 2005-04-07  Lluis Sanchez Gual <[EMAIL PROTECTED]>
 
        * TemplateControl.cs:

Modified: trunk/mcs/class/System.Web/System.Web.UI/DataSourceView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/DataSourceView.cs  2005-04-08 
20:56:45 UTC (rev 42707)
+++ trunk/mcs/class/System.Web/System.Web.UI/DataSourceView.cs  2005-04-08 
21:27:41 UTC (rev 42708)
@@ -110,9 +110,11 @@
 
                protected virtual void OnDataSourceViewChanged (EventArgs 
eventArgs)
                {
-                       EventHandler evtHandler = eventsList 
[EventDataSourceViewChanged] as EventHandler;
-                       if (evtHandler != null)
-                               evtHandler(this, eventArgs);
+                       if (eventsList != null) {
+                               EventHandler evtHandler = eventsList 
[EventDataSourceViewChanged] as EventHandler;
+                               if (evtHandler != null)
+                                       evtHandler(this, eventArgs);
+                       }
                }
                
                protected internal virtual void RaiseUnsupportedCapabilityError 
(

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to