From 0c8d4585216be5bf3735b97e4f6db4150124199d Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 18 Dec 2018 20:59:00 +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 0f0ac146..de4dcdf4 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -901,6 +901,9 @@ namespace WebSocketSharp.Net /// public static void HtmlDecode (string s, TextWriter output) { + if (s == null) + throw new ArgumentNullException ("s"); + if (output == null) throw new ArgumentNullException ("output");