X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.Security%2FFormsAuthenticationTicket.cs;h=5adad7863bb14a5cf00698c61b9a2e0b4ca22e53;hb=43f369a1073652cb211aea5bff28743ab7879f47;hp=86232449132dc63d493ab492960f18e2b5be39d0;hpb=dbf19eb41dbd299c4c33d4de35ffe3cf6c669832;p=mono.git diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs index 86232449132..5adad7863bb 100644 --- a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs +++ b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs @@ -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 () { }