From 680404686cccb9615800839242f2a49ed482ba92 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 21 Sep 2018 19:35:43 +0900 Subject: [PATCH] [Modify] Throw exception --- websocket-sharp/Net/HttpUtility.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 15ea0557..3859598b 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -1305,7 +1305,10 @@ namespace WebSocketSharp.Net public static string UrlPathEncode (string s) { - if (s == null || s.Length == 0) + if (s == null) + throw new ArgumentNullException ("s"); + + if (s.Length == 0) return s; var buff = new StringBuilder ();