Author: igorz
Date: 2007-05-07 05:22:24 -0400 (Mon, 07 May 2007)
New Revision: 76816
Modified:
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
Log:
merged r76813-76814
Modified:
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
---
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2007-05-07 09:21:52 UTC (rev 76815)
+++
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2007-05-07 09:22:24 UTC (rev 76816)
@@ -1,3 +1,9 @@
+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-03 Marek Habersack <[EMAIL PROTECTED]>
* TreeNode.cs: correct version of the fix in r76488. Nodes
Modified:
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
2007-05-07 09:21:52 UTC (rev 76815)
+++
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
2007-05-07 09:22:24 UTC (rev 76816)
@@ -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