[Modify] Throw exception

This commit is contained in:
sta 2018-09-25 19:45:08 +09:00
parent 74bb695fa0
commit 4b2e166481

View File

@ -819,7 +819,10 @@ namespace WebSocketSharp.Net
public static string HtmlAttributeEncode (string s)
{
if (s == null || s.Length == 0)
if (s == null)
throw new ArgumentNullException ("s");
if (s.Length == 0)
return s;
var buff = new StringBuilder ();