From 6a3ff4964b8e20ed3efccf8552696d9974fff236 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 27 Sep 2018 19:39:44 +0900 Subject: [PATCH] [Modify] Throw exception --- websocket-sharp/Net/HttpUtility.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index af2be570..b83694ab 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -1042,6 +1042,9 @@ namespace WebSocketSharp.Net public static void HtmlEncode (string s, TextWriter output) { + if (s == null) + throw new ArgumentNullException ("s"); + if (output == null) throw new ArgumentNullException ("output");