Author: kostat
Date: 2008-02-10 03:36:04 -0500 (Sun, 10 Feb 2008)
New Revision: 95360

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/Page.jvm.cs
Log:
ignore null state in processRestoreState

Modified: trunk/mcs/class/System.Web/System.Web.UI/Page.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Page.jvm.cs        2008-02-10 
08:18:22 UTC (rev 95359)
+++ trunk/mcs/class/System.Web/System.Web.UI/Page.jvm.cs        2008-02-10 
08:36:04 UTC (rev 95360)
@@ -209,8 +209,10 @@
                public override void processRestoreState (FacesContext context, 
object state) {
                        System.Diagnostics.Trace.WriteLine 
("processRestoreState");
 
-                       if (state == null)
-                               throw new ArgumentNullException ("state");
+                       if (state == null) {
+                               Console.WriteLine ("WARNING: 
processRestoreState was called with null state.");
+                               return; //throw new ArgumentNullException 
("state");
+                       }
                        IHttpHandler jsfHandler = EnterThread ();
                        try {
                                state = ((StateSerializer) state).State;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to