bugDotGNU Portable.NET - Bugs: bug #2499, Console.WriteLine throws exception...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2499: Console.WriteLine throws exception when argument is null string

Submitted by:  Marcus Urban <mathpup>
Submitted on:  Sat 08 Feb 2003 09:38:37 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 09 Feb 2003 09:52:46 AM UTC, comment #1:

applied patch.

Adam Ballai <minddog>
Project Member
Sat 08 Feb 2003 09:38:37 AM UTC, original submission:

Console.WriteLine fails when a null string is passed to it. The problem actually appears to be in StreamWriter.Write(string value), which is where the exception occurs:

Uncaught exception: System.ArgumentNullException: Argument cannot be null
Parameter name: value
at System.IO.StreamWriter.Write(String) in ./System/IO/StreamWriter.cs:219
at System.IO.TextWriter.WriteLine(String) in ./System/IO/TextWriter.cs:280
at System.Console.WriteLine(String) in ./System/Console.cs:340
at Testing.Main()

Marcus Urban <mathpup>

 

Attached Files
file #286:  writeline.cs added by mathpup (112B - text/x-csharp - Test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Sun 09 Feb 2003 09:52:45 AM UTCminddogOpen/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1