[Mono-bugs] [Bug 24503] New - NullReferenceException with Console.WriteLine

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
10 May 2002 13:03:55 -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 sma@3plus4.de.

http://bugzilla.ximian.com/show_bug.cgi?id=24503

--- shadow/24503	Fri May 10 09:03:55 2002
+++ shadow/24503.tmp.23955	Fri May 10 09:03:55 2002
@@ -0,0 +1,48 @@
+Bug#: 24503
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: German XP
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sma@3plus4.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException with Console.WriteLine
+
+The attached program works fine with MS .NET but throws the following 
+error when run on mono compiled from cvs today:
+
+$ mono a.exe
+
+(process:996): ** WARNING **: unhandled exception 
+System.NullReferenceException:
+ "A null value was found where an object instance was required"
+in (unmanaged) System.Text.Encoding:IConvNewDecoder ()
+in 018 System.Text.IConvDecoder:.ctor ()
+in 0a0 System.Text.Encoding:.ctor ()
+in 019 System.Text.UTF8Encoding:.ctor ()
+in 03a System.Text.Encoding:get_UTF8 ()
+in 00c System.IO.StreamWriter:.ctor ()
+in 069 System.Console:.cctor ()
+
+----
+
+$ cat a.cs
+using System;
+
+class a {
+public static void Main() {
+ Console.WriteLine("Hallo");
+}
+}
+
+-----
+
+Using the precompiled 0.11 version from Johannes Roith works.