From b922bd7cbdbc431201f0b765c22c9e3285d8ea00 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 4 Nov 2018 21:49:36 +0900 Subject: [PATCH] [Modify] Throw exception --- websocket-sharp/Net/HttpUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 72ca9594..02cbcd25 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -1160,7 +1160,7 @@ namespace WebSocketSharp.Net public static byte[] UrlDecodeToBytes (string s, Encoding encoding) { if (s == null) - return null; + throw new ArgumentNullException ("s"); if (s.Length == 0) return new byte[0];