зеркало из https://github.com/mono/mail-archives.git
128 строки
4.4 KiB
HTML
128 строки
4.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-list] String.Join NullReferenceException
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:e_osorio%40yahoo.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="016233.html">
|
|
<LINK REL="Next" HREF="016237.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] String.Join NullReferenceException
|
|
</H1>
|
|
<B>Eduardo Osorio Armenta
|
|
</B>
|
|
<A HREF="mailto:e_osorio%40yahoo.com"
|
|
TITLE="[Mono-list] String.Join NullReferenceException">e_osorio@yahoo.com
|
|
</A><BR>
|
|
<I>Thu, 9 Oct 2003 17:46:17 -0700 (PDT)</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="016233.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016237.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16235">[ date ]</a>
|
|
<a href="thread.html#16235">[ thread ]</a>
|
|
<a href="subject.html#16235">[ subject ]</a>
|
|
<a href="author.html#16235">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>OK net 1.1
|
|
|
|
E:\eduardo\prog\mono\c#\test>csc test.cs
|
|
Versión del compilador de Microsoft (R) Visual C#
|
|
.NET7.10.3052.4
|
|
para Microsoft (R) .NET Framework versión 1.1.4322
|
|
(C) Microsoft Microsoft Corporation 2001-2002.
|
|
Reservados todos los derechos.
|
|
|
|
E:\eduardo\prog\mono\c#\test>test
|
|
hello world!
|
|
|
|
--- Rodolfo Campero <<A HREF="mailto:rodolfocampero@hotmail.com">rodolfocampero@hotmail.com</A>>
|
|
wrote:
|
|
><i> Hi,
|
|
</I>><i> I've found something that maybe is a bug. When I run
|
|
</I>><i> the following program:
|
|
</I>><i>
|
|
</I>><i> using System;
|
|
</I>><i> namespace Test {
|
|
</I>><i> public class TestJoin {
|
|
</I>><i> public static void Main(string[] args) {
|
|
</I>><i> string[] array = new string[] {"hello ", null,
|
|
</I>><i> "world!"};
|
|
</I>><i> Console.WriteLine(String.Join(String.Empty,
|
|
</I>><i> array));
|
|
</I>><i> }
|
|
</I>><i> }
|
|
</I>><i> }
|
|
</I>><i>
|
|
</I>><i> I get the following error:
|
|
</I>><i>
|
|
</I>><i> Unhandled Exception: System.NullReferenceException:
|
|
</I>><i> A null value was found
|
|
</I>><i> where an object instance was required
|
|
</I>><i>
|
|
</I>><i> I've tested the same program at work, with
|
|
</I>><i> Microsoft's SDK (1.0), and it
|
|
</I>><i> prints
|
|
</I>><i> the well-known "hello world!" message.
|
|
</I>><i>
|
|
</I>><i> Is this a bug? can someone corroborate it under mono
|
|
</I>><i> and under .NET 1.1? If
|
|
</I>><i> that's the case, I'll be happy to write a test case
|
|
</I>><i> (please indicate me
|
|
</I>><i> where)
|
|
</I>><i> and fill a form in bugzilla.
|
|
</I>><i>
|
|
</I>><i> I tried to follow the implementation in String.cs,
|
|
</I>><i> but the actual
|
|
</I>><i> implementation
|
|
</I>><i> is somewhere else; so I guess the fix may require
|
|
</I>><i> more knowledge than I
|
|
</I>><i> have...
|
|
</I>><i>
|
|
</I>><i> Thanks,
|
|
</I>><i>
|
|
</I>><i> Rodolfo
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>_________________________________________________________________
|
|
><i> MSN 8 helps eliminate e-mail viruses. Get 2 months
|
|
</I>><i> FREE*.
|
|
</I>><i> <A HREF="http://join.msn.com/?page=features/virus">http://join.msn.com/?page=features/virus</A>
|
|
</I>><i>
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
|
|
</I>
|
|
|
|
__________________________________
|
|
Do you Yahoo!?
|
|
The New Yahoo! Shopping - with improved product search
|
|
<A HREF="http://shopping.yahoo.com">http://shopping.yahoo.com</A>
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="016233.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016237.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16235">[ date ]</a>
|
|
<a href="thread.html#16235">[ thread ]</a>
|
|
<a href="subject.html#16235">[ subject ]</a>
|
|
<a href="author.html#16235">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|