[Mono-bugs] [Bug 24041] New - NullReferenceException in System.String.InternalReplace
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
30 Apr 2002 16:16:51 -0000
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 loz@cable.a2000.nl.
http://bugzilla.ximian.com/show_bug.cgi?id=24041
--- shadow/24041 Tue Apr 30 12:16:51 2002
+++ shadow/24041.tmp.6733 Tue Apr 30 12:16:51 2002
@@ -0,0 +1,39 @@
+Bug#: 24041
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: W2K
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: loz@cable.a2000.nl
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NullReferenceException in System.String.InternalReplace
+
+public class Test10 {
+ public static void Main () {
+ string s = "System.Int32"
+ .Replace ("System.Int32", "int")
+ .Replace ("System.UInt32", "unit");
+
+ System.Console.WriteLine (s);
+ }
+}
+
+running with mono/mint this always results in:
+
+(process:1372): ** WARNING **: unhandled exception
+System.NullReferenceException
+: "A null value was found where an object instance was required"
+in (unmanaged) System.String:InternalReplace ()
+
+
+
+Greets,
+Lawrence