2002-04-03 Dan Lewis <dihlewis@yahoo.co.uk>
authorDan Lewis <dan@mono-cvs.ximian.com>
Wed, 3 Apr 2002 07:39:20 +0000 (07:39 -0000)
committerDan Lewis <dan@mono-cvs.ximian.com>
Wed, 3 Apr 2002 07:39:20 +0000 (07:39 -0000)
* ChangeLog: Added changelog.

* cache.cs: Fixed bug in MRUList.Evict.

svn path=/trunk/mcs/; revision=3572

mcs/class/System/System.Text.RegularExpressions/ChangeLog [new file with mode: 0644]
mcs/class/System/System.Text.RegularExpressions/cache.cs

diff --git a/mcs/class/System/System.Text.RegularExpressions/ChangeLog b/mcs/class/System/System.Text.RegularExpressions/ChangeLog
new file mode 100644 (file)
index 0000000..fc65ce4
--- /dev/null
@@ -0,0 +1,5 @@
+2002-04-03  Dan Lewis  <dihlewis@yahoo.co.uk>
+
+       * ChangeLog: Added changelog.
+
+       * cache.cs: Fixed bug in MRUList.Evict.
index 8936eca3f2c31262700850f3cf2325f6fc2a3bbb..3aa9107b228da93c42494278fe702e2b82b17da8 100644 (file)
@@ -120,7 +120,12 @@ namespace System.Text.RegularExpressions {
 \r
                        object o = tail.value;\r
                        tail = tail.next;\r
-                       tail.previous = null;\r
+\r
+                       if (tail == null)\r
+                               head = null;\r
+                       else\r
+                               tail.previous = null;\r
+\r
                        return o;\r
                }\r
 \r