[Mono-bugs] [Bug 80307][Wis] New - NullReferenceException in ternary operator
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Dec 18 14:57:19 EST 2006
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 grendello at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80307
--- shadow/80307 2006-12-18 14:57:19.000000000 -0500
+++ shadow/80307.tmp.28673 2006-12-18 14:57:19.000000000 -0500
@@ -0,0 +1,77 @@
+Bug#: 80307
+Product: Mono: Runtime
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: JIT
+AssignedTo: lupus at ximian.com
+ReportedBy: grendello at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NullReferenceException in ternary operator
+
+Current svn head throws the following exception with xsp2 serving the
+attached file:
+
+System.NullReferenceException: Object reference not set to an instance of
+an object
+ at System.Web.Compilation.AspParser.GetServerTag
+(System.Web.Compilation.TagType& tagtype, System.String& id,
+System.Web.Compilation.TagAttributes& attributes) [0x00149] in /usr/src/
+tmp/mono/mcs/class/System.Web/System.Web.Compilation/AspParser.cs:457
+ at System.Web.Compilation.AspParser.GetTag
+(System.Web.Compilation.TagType& tagtype, System.String& id,
+System.Web.Compilation.TagAttributes& attributes) [0x00044] in /usr/src/
+tmp/mono/mcs/class/System.Web/System.Web.Compilation/AspParser.cs:241
+ at System.Web.Compilation.AspParser.Parse () [0x000cc] in /usr/src/tmp/
+mono/mcs/class/System.Web/System.Web.Compilation/AspParser.cs:153
+ at System.Web.Compilation.AspGenerator.Parse (System.String
+file) [0x00007] in /usr/src/tmp/mono/mcs/class/System.Web/
+System.Web.Compilation/AspGenerator.cs:252
+ at System.Web.Compilation.AspGenerator.Parse () [0x00000] in /usr/src/
+tmp/mono/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:269
+ at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00054] in /
+usr/src/tmp/mono/mcs/class/System.Web/System.Web.Compilation/
+AspGenerator.cs:283
+ at System.Web.UI.PageParser.CompileIntoType () [0x00007] in /usr/src/tmp/
+mono/mcs/class/System.Web/System.Web.UI/PageParser.cs:341
+ at System.Web.UI.TemplateControlParser.GetCompiledInstance () [0x00000]
+in /usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/
+TemplateControlParser.cs:72
+ at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
+virtualPath, System.String inputFile, System.Web.HttpContext
+context) [0x00009] in /usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/
+PageParser.cs:101
+ at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext
+context, System.String requestType, System.String url, System.String
+path) [0x00000] in /usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/
+PageHandlerFactory.cs:40
+ at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
+context) [0x00059] in /usr/src/tmp/mono/mcs/class/System.Web/System.Web/
+HttpApplication.cs:1124
+ at System.Web.HttpApplication+<>c__CompilerGenerated3.MoveNext
+() [0x006ad] in /usr/src/tmp/mono/mcs/class/System.Web/System.Web/
+HttpApplication.cs:895
+
+When line AspParser.cs:457 is replaced with:
+
+ if (databinding)
+ tagtype = TagType.DataBinding;
+ else if (varname)
+ tagtype = TagType.CodeRenderExpression;
+ else
+ tagtype = TagType.CodeRender;
+
+or the following line is put before line 457
+
+Console.WriteLine("databinding == {0};varname == {1}", databinding,
+varname);
+
+the exception does not occur. The problem first showed up sometime last
+week, I can't tell exactly when, though.
More information about the mono-bugs
mailing list