* TimezoneInfo.cs: nullity check in HasSameRules (). Fixes bnc #391011 svn path=/trunk/mcs/; revision=104052
@@ -1,3 +1,7 @@
+2008-05-26 Stephane Delcroix <[email protected]>
+
+ * TimezoneInfo.cs: nullity check in HasSameRules (). Fixes bnc #391011
2008-04-13 Jb Evain <[email protected]>
* Func.cs: remove old ugly 2.1 hack.
@@ -406,6 +406,12 @@ namespace System
if (other == null)
throw new ArgumentNullException ("other");
+ if ((this.adjustmentRules == null) != (other.adjustmentRules == null))
+ return false;
+ if (this.adjustmentRules == null)
+ return true;
if (this.BaseUtcOffset != other.BaseUtcOffset)
return false;