[Modify] Throw an exception
This commit is contained in:
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…
Reference in New Issue
Block a user