* WebConfigurationManager.cs: make sure no nrex happens in GetSectionCacheKey () svn path=/trunk/mcs/; revision=128251
@@ -1,3 +1,8 @@
+2009-02-28 Marek Habersack <[email protected]>
+
+ * WebConfigurationManager.cs: make sure no nrex happens in
+ GetSectionCacheKey ()
2009-02-26 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: generate a hash from the string hsah
@@ -487,7 +487,7 @@ namespace System.Web.Configuration {
static int GetSectionCacheKey (string sectionName, string path)
{
- return sectionName.GetHashCode () ^ (path.GetHashCode () + 37);
+ return (sectionName != null ? sectionName.GetHashCode () : 0) ^ ((path != null ? path.GetHashCode () : 0) + 37);
}