[Modify] Throw exception

master
sta 7 years ago
parent 904bbdaa36
commit 6a3ff4964b

@ -1042,6 +1042,9 @@ namespace WebSocketSharp.Net
public static void HtmlEncode (string s, TextWriter output) public static void HtmlEncode (string s, TextWriter output)
{ {
if (s == null)
throw new ArgumentNullException ("s");
if (output == null) if (output == null)
throw new ArgumentNullException ("output"); throw new ArgumentNullException ("output");

Loading…
Cancel
Save