[Mono-bugs] [Bug 55801][Nor] New - Regex.GroupNameFromNumber throws NullReferenceException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 19 Mar 2004 08:08:00 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen@pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=55801

--- shadow/55801	2004-03-19 08:08:00.000000000 -0500
+++ shadow/55801.tmp.8806	2004-03-19 08:08:00.000000000 -0500
@@ -0,0 +1,24 @@
+Bug#: 55801
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Regex.GroupNameFromNumber throws NullReferenceException
+
+Regex.GroupNameFromNumber throws a NullReferenceException when getting the
+name of the last group.
+
+I attached a repro, a fix and a test case.
+
+The fix I attached also fixes the order of the groups to match that of MS.NET.