зеркало из https://github.com/mono/mail-archives.git
104 строки
3.5 KiB
HTML
104 строки
3.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 24041] New - NullReferenceException in System.String.InternalReplace
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="000512.html">
|
|
<LINK REL="Next" HREF="000514.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 24041] New - NullReferenceException in System.String.InternalReplace
|
|
</H1>
|
|
<B>bugzilla-daemon@rocky.ximian.com
|
|
</B>
|
|
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 24041] New - NullReferenceException in System.String.InternalReplace">bugzilla-daemon@rocky.ximian.com
|
|
</A><BR>
|
|
<I>30 Apr 2002 16:16:51 -0000</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="000512.html">[Mono-bugs] [Bug 24020] New - Strange casting bug
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000514.html">[Mono-bugs] [Bug 24041] Changed - NullReferenceException in System.String.InternalReplace
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#513">[ date ]</a>
|
|
<a href="thread.html#513">[ thread ]</a>
|
|
<a href="subject.html#513">[ subject ]</a>
|
|
<a href="author.html#513">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="mailto:loz@cable.a2000.nl.">loz@cable.a2000.nl.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=24041">http://bugzilla.ximian.com/show_bug.cgi?id=24041</A>
|
|
|
|
--- 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: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+ReportedBy: <A HREF="mailto:loz@cable.a2000.nl">loz@cable.a2000.nl</A>
|
|
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+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
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="000512.html">[Mono-bugs] [Bug 24020] New - Strange casting bug
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000514.html">[Mono-bugs] [Bug 24041] Changed - NullReferenceException in System.String.InternalReplace
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#513">[ date ]</a>
|
|
<a href="thread.html#513">[ thread ]</a>
|
|
<a href="subject.html#513">[ subject ]</a>
|
|
<a href="author.html#513">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|