Author: suresh
Date: 2005-07-14 08:27:56 -0400 (Thu, 14 Jul 2005)
New Revision: 47301

Modified:
   trunk/mcs/class/System.Data/System.Data/ChangeLog
   trunk/mcs/class/System.Data/System.Data/DataView.cs
Log:
2005-07-14  Sureshkumar T  <[EMAIL PROTECTED]>

        reapplied patch from Marc Haisenko.
        * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
        is never null.



Modified: trunk/mcs/class/System.Data/System.Data/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data/ChangeLog   2005-07-14 12:25:12 UTC 
(rev 47300)
+++ trunk/mcs/class/System.Data/System.Data/ChangeLog   2005-07-14 12:27:56 UTC 
(rev 47301)
@@ -1,3 +1,9 @@
+2005-07-14  Sureshkumar T  <[EMAIL PROTECTED]>
+
+       reapplied patch from Marc Haisenko.
+       * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
+       is never null.
+
 2005-07-13  Sureshkumar T  <[EMAIL PROTECTED]>
 
        * DataRelationCollection.cs: adding a relation with same set of

Modified: trunk/mcs/class/System.Data/System.Data/DataView.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataView.cs 2005-07-14 12:25:12 UTC 
(rev 47300)
+++ trunk/mcs/class/System.Data/System.Data/DataView.cs 2005-07-14 12:27:56 UTC 
(rev 47301)
@@ -41,7 +41,7 @@
                IExpression rowFilterExpr;
                string sort = String.Empty;
                protected DataViewRowState rowState;
-               protected DataRowView[] rowCache = null;
+               protected DataRowView[] rowCache = new DataRowView [0];
 
                // BeginInit() support
                bool isInitPhase = false;
@@ -535,7 +535,7 @@
                        if (dataTable != null)
                                UnregisterEventHandlers ();
                        Index = null;
-                       rowCache = null;
+                       rowCache = new DataRowView [0];
                        isOpen = false;
                }
 
@@ -703,7 +703,7 @@
                {
                        // TODO: what really happens?
                        Close ();
-                       rowCache = null;
+                       rowCache = new DataRowView [0];
                        Open ();
                        OnListChanged (new ListChangedEventArgs 
(ListChangedType.Reset, -1 ));
                }

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

Reply via email to