[Modify] Throw exception

master
sta 7 years ago
parent 74bb695fa0
commit 4b2e166481

@ -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 ();

Loading…
Cancel
Save