Author: igorz
Date: 2007-03-28 12:30:36 -0500 (Wed, 28 Mar 2007)
New Revision: 75089

Modified:
   trunk/mcs/class/System.Web/System.Web/ChangeLog
   trunk/mcs/class/System.Web/System.Web/StaticSiteMapProvider.cs
Log:
2007-03-28 Igor Zelmanovich <[EMAIL PROTECTED]>

        * StaticSiteMapProvider.cs:
        GetChildNodes does not return null but 
SiteMapNodeCollection.EmptyCollection.



Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog     2007-03-28 17:16:39 UTC 
(rev 75088)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog     2007-03-28 17:30:36 UTC 
(rev 75089)
@@ -1,3 +1,8 @@
+2007-03-28 Igor Zelmanovich <[EMAIL PROTECTED]>
+
+       * StaticSiteMapProvider.cs:
+       GetChildNodes does not return null but 
SiteMapNodeCollection.EmptyCollection.
+
 2007-03-28  Konstantin Triger <[EMAIL PROTECTED]>
 
        * BrowserCapabilities.cs: 

Modified: trunk/mcs/class/System.Web/System.Web/StaticSiteMapProvider.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/StaticSiteMapProvider.cs      
2007-03-28 17:16:39 UTC (rev 75088)
+++ trunk/mcs/class/System.Web/System.Web/StaticSiteMapProvider.cs      
2007-03-28 17:30:36 UTC (rev 75089)
@@ -170,14 +170,14 @@
                                } else if (ret != null)
                                        ret.Add (col[n]);
                        }
-                       
-                       if (ret != null) {
-                               if (ret.Count > 0)
-                                       return SiteMapNodeCollection.ReadOnly 
(ret);
-                       } else
+
+                       if (ret == null)
                                return SiteMapNodeCollection.ReadOnly (col);
+                       else if (ret.Count > 0)
+                               return SiteMapNodeCollection.ReadOnly (ret);
+                       else
+                               return SiteMapNodeCollection.EmptyCollection;
                        
-                       return null;
                }
                
                public override SiteMapNode GetParentNode (SiteMapNode node)

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

Reply via email to