[Modify] Throw exception

This commit is contained in:
sta 2018-11-04 21:49:36 +09:00
parent 03f10fff42
commit b922bd7cbd

View File

@ -1160,7 +1160,7 @@ namespace WebSocketSharp.Net
public static byte[] UrlDecodeToBytes (string s, Encoding encoding) public static byte[] UrlDecodeToBytes (string s, Encoding encoding)
{ {
if (s == null) if (s == null)
return null; throw new ArgumentNullException ("s");
if (s.Length == 0) if (s.Length == 0)
return new byte[0]; return new byte[0];