зеркало из https://github.com/mono/mail-archives.git
145 строки
5.9 KiB
HTML
145 строки
5.9 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:rodolfocampero%40hotmail.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="016237.html">
|
|
<LINK REL="Next" HREF="016239.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] String.Join NullReferenceException
|
|
</H1>
|
|
<B>Rodolfo Campero
|
|
</B>
|
|
<A HREF="mailto:rodolfocampero%40hotmail.com"
|
|
TITLE="[Mono-list] String.Join NullReferenceException">rodolfocampero@hotmail.com
|
|
</A><BR>
|
|
<I>09 Oct 2003 22:34:46 -0300</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="016237.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016239.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16240">[ date ]</a>
|
|
<a href="thread.html#16240">[ thread ]</a>
|
|
<a href="subject.html#16240">[ subject ]</a>
|
|
<a href="author.html#16240">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Done.
|
|
|
|
|
|
El jue, 09 de 10 de 2003 a las 21:57, Jackson Harper escribió:
|
|
><i> Hello,
|
|
</I>><i>
|
|
</I>><i> Could you please file a bug report?
|
|
</I>><i>
|
|
</I>><i> Thank you,
|
|
</I>><i> Jackson
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> On Thu, 2003-10-09 at 17:46, Eduardo Osorio Armenta wrote:
|
|
</I>><i> > OK net 1.1
|
|
</I>><i> >
|
|
</I>><i> > E:\eduardo\prog\mono\c#\test>csc test.cs
|
|
</I>><i> > Versin del compilador de Microsoft (R) Visual C#
|
|
</I>><i> > .NET7.10.3052.4
|
|
</I>><i> > para Microsoft (R) .NET Framework versin 1.1.4322
|
|
</I>><i> > (C) Microsoft Microsoft Corporation 2001-2002.
|
|
</I>><i> > Reservados todos los derechos.
|
|
</I>><i> >
|
|
</I>><i> > E:\eduardo\prog\mono\c#\test>test
|
|
</I>><i> > hello world!
|
|
</I>><i> >
|
|
</I>><i> > --- Rodolfo Campero <<A HREF="mailto:rodolfocampero@hotmail.com">rodolfocampero@hotmail.com</A>>
|
|
</I>><i> > wrote:
|
|
</I>><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> > _________________________________________________________________
|
|
</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>><i> >
|
|
</I>><i> >
|
|
</I>><i> > __________________________________
|
|
</I>><i> > Do you Yahoo!?
|
|
</I>><i> > The New Yahoo! Shopping - with improved product search
|
|
</I>><i> > <A HREF="http://shopping.yahoo.com">http://shopping.yahoo.com</A>
|
|
</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>
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="016237.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016239.html">[Mono-list] String.Join NullReferenceException
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16240">[ date ]</a>
|
|
<a href="thread.html#16240">[ thread ]</a>
|
|
<a href="subject.html#16240">[ subject ]</a>
|
|
<a href="author.html#16240">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|