Author: igorz
Date: 2007-05-07 05:19:02 -0400 (Mon, 07 May 2007)
New Revision: 76814

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
Log:
2007-05-07 Igor Zelmanovich <[EMAIL PROTECTED]>

        * FormView.cs: fixed:
        avoid NullReferenceException when used EditTemplate w/o binding 
        directive such Eval or Bind.     



Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-05-07 09:18:53 UTC (rev 76813)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-05-07 09:19:02 UTC (rev 76814)
@@ -1,5 +1,11 @@
 2007-05-07 Igor Zelmanovich <[EMAIL PROTECTED]>
 
+       * FormView.cs: fixed:
+       avoid NullReferenceException when used EditTemplate w/o binding 
+       directive such Eval or Bind.     
+
+2007-05-07 Igor Zelmanovich <[EMAIL PROTECTED]>
+
        * MenuItem.cs: fixed: 
        when 'Value' property is not set, value of 'Text' property is used 
        instead and vice versa.

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs    
2007-05-07 09:18:53 UTC (rev 76813)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs    
2007-05-07 09:19:02 UTC (rev 76814)
@@ -1111,6 +1111,7 @@
                        
                        if (bt != null) {
                                IOrderedDictionary values = bt.ExtractValues 
(Row.Cells [0]);
+                               if (values != null)
                                foreach (DictionaryEntry e in values) {
                                        if (includeKeys || Array.IndexOf 
(DataKeyNames, e.Key) == -1)
                                                fieldValues [e.Key] = e.Value;

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

Reply via email to