ignore null state in processRestoreState
authorKonstantin Triger <kostat@mono-cvs.ximian.com>
Sun, 10 Feb 2008 08:36:04 +0000 (08:36 -0000)
committerKonstantin Triger <kostat@mono-cvs.ximian.com>
Sun, 10 Feb 2008 08:36:04 +0000 (08:36 -0000)
svn path=/trunk/mcs/; revision=95360

mcs/class/System.Web/System.Web.UI/Page.jvm.cs

index 188a71aacbb8ae8dbda6a17dfd328ff24151e96f..d53cc302c03bd40c7e0d1ee35942bca40a62c3db 100644 (file)
@@ -209,8 +209,10 @@ namespace System.Web.UI
                public override void processRestoreState (FacesContext context, object state) {\r
                        System.Diagnostics.Trace.WriteLine ("processRestoreState");\r
 \r
-                       if (state == null)\r
-                               throw new ArgumentNullException ("state");\r
+                       if (state == null) {\r
+                               Console.WriteLine ("WARNING: processRestoreState was called with null state.");\r
+                               return; //throw new ArgumentNullException ("state");\r
+                       }\r
                        IHttpHandler jsfHandler = EnterThread ();\r
                        try {\r
                                state = ((StateSerializer) state).State;\r