Parcourir la source

2003-09-18 Gonzalo Paniagua Javier <[email protected]>

	* LosFormatter.cs: fixed Deserialize for empty viewstate.

svn path=/trunk/mcs/; revision=18158
Gonzalo Paniagua Javier il y a 22 ans
Parent
commit
bc4884cdd7

+ 4 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,7 @@
+2003-09-18  Gonzalo Paniagua Javier <[email protected]>
+
+	* LosFormatter.cs: fixed Deserialize for empty viewstate.
+
 2003-08-26  Gonzalo Paniagua Javier <[email protected]>
 
 	* Page.cs: check if controls that require postback have

+ 3 - 0
mcs/class/System.Web/System.Web.UI/LosFormatter.cs

@@ -96,6 +96,9 @@ namespace System.Web.UI
 			if (input == null)
 				throw new ArgumentNullException ("input");
 
+			if (input == "")
+				return null;
+
 			string real_input = WebEncoding.Encoding.GetString (Convert.FromBase64String (input));
 			return DeserializeObject (real_input);
 		}