[Modify] Throw an exception

master
sta 6 years ago
parent 697b46a600
commit 9fe178710b

@ -548,7 +548,10 @@ namespace WebSocketSharp.Net
throw new InvalidOperationException (msg); throw new InvalidOperationException (msg);
} }
if (value == null || value.Length == 0) { if (value == null)
throw new ArgumentNullException ("value");
if (value.Length == 0) {
_statusDescription = _statusCode.GetStatusDescription (); _statusDescription = _statusCode.GetStatusDescription ();
return; return;
} }

Loading…
Cancel
Save