From 8aedfa8cc81ef96526771aa3909b52d986d9fac2 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 26 Sep 2018 20:34:32 +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 97d73dc2..7d1b4001 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -846,6 +846,9 @@ namespace WebSocketSharp.Net public static void HtmlAttributeEncode (string s, TextWriter output) { + if (s == null) + throw new ArgumentNullException ("s"); + if (output == null) throw new ArgumentNullException ("output");