[sgen] Untag the vtable during concurrent mark
[mono.git] / mcs / class / System.Web / System.Web.Security / FormsAuthenticationTicket.cs
index 86232449132dc63d493ab492960f18e2b5be39d0..5adad7863bb14a5cf00698c61b9a2e0b4ca22e53 100644 (file)
@@ -87,6 +87,9 @@ namespace System.Web.Security
 
                internal static FormsAuthenticationTicket FromByteArray (byte [] bytes)
                {
+                       if (bytes == null)
+                               throw new ArgumentNullException ("bytes");
+                       
                        MemoryStream ms = new MemoryStream (bytes);
                        BinaryReader reader = new BinaryReader (ms);
                        FormsAuthenticationTicket ticket = new FormsAuthenticationTicket ();
@@ -106,7 +109,7 @@ namespace System.Web.Security
                        return ticket;
                }
 
-               private FormsAuthenticationTicket ()
+               FormsAuthenticationTicket ()
                {
                }