diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index ef6d7bd6..a8767674 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1544,7 +1544,10 @@ namespace WebSocketSharp /// public static bool MaybeUri (this string value) { - if (value == null || value.Length == 0) + if (value == null) + return false; + + if (value.Length == 0) return false; var idx = value.IndexOf (':');