[Mono-bugs] [Bug 57083][Wis] New - NullReferenceException in HttpUtility.HtmlEncode()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 15 Apr 2004 15:48:29 -0400 (EDT)


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 mono-bug@jerryweb.info.

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

--- shadow/57083	2004-04-15 15:48:29.000000000 -0400
+++ shadow/57083.tmp.30224	2004-04-15 15:48:29.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 57083
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mono-bug@jerryweb.info               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException in HttpUtility.HtmlEncode()
+
+NullReferenceException in HttpUtility.HtmlEncode()
+
+Steps to reproduce the problem:
+Run the following ASP.NET page
+==========================================
+<%@ Page Language="C#" %>
+<% pp.InnerText = null; pp.InnerText = "OK"; %>
+<p id="pp" runat="server"></p>
+==========================================
+
+Actual Results:
+
+MS .NET 1.0:
+OK
+
+Linux, Mono (CVS, 2004-04-12):
+
+System.ArgumentNullException: Argument cannot be null.
+Parameter name: s
+in <0x0005c> System.Web.HttpUtility:HtmlEncode (string)
+in <0x00014> System.Web.UI.HtmlControls.HtmlContainerControl:set_InnerText
+(string)
+in <0x0002c> ASP.test_aspx:__RenderTree
+(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
+in <0x0005a> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_HtmlTextWriter_Control
+(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
+in <0x00048> System.Web.UI.Control:RenderChildren
+(System.Web.UI.HtmlTextWriter)
+in <0x00011> System.Web.UI.Control:Render (System.Web.UI.HtmlTextWriter)
+in <0x0001c> System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
+in <0x0041f> System.Web.UI.Page:InternalProcessRequest ()
+in <0x0008d> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in <0x00327> ExecuteHandlerState:Execute ()
+in <0x00084> StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)