[Mono-bugs] [Bug 23180] New - NullRefernce on compile.. after getting error on String[]

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
8 Apr 2002 19:55:42 -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 pt99par@student.bth.se.

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

--- shadow/23180	Mon Apr  8 15:55:42 2002
+++ shadow/23180.tmp.29704	Mon Apr  8 15:55:42 2002
@@ -0,0 +1,43 @@
+Bug#: 23180
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: pt99par@student.bth.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullRefernce on compile.. after getting error on String[]  
+
+Please fill in this template when reporting a bug, unless you know what you are  
+doing.  
+Description of Problem:  
+mcs gets NullReference when compiling this code:  
+public class Test {  
+  
+    public static void Main(String[] args) {  
+	string test = "";  
+	Console.WriteLine( test.FullName );  
+	Console.WriteLine( test.Extension );  
+    }  
+  
+}  
+  
+Stacktrace:  
+ 
+(process:9485): ** WARNING **: unhandled exception System.NullReferenceException:  
+"A null value was found where an object instance was required"  
+in System.Type:get_IsPointer ()  
+in Mono.CSharp.Method:Define ()  
+in Mono.CSharp.TypeContainer:DefineMembers ()  
+in Mono.CSharp.TypeContainer:Define ()  
+in Mono.CSharp.RootContext:PopulateTypes ()  
+in Mono.CSharp.Driver:MainDriver ()  
+in Mono.CSharp.Driver:Main ()