We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 369c14d commit 2e3595bCopy full SHA for 2e3595b
RestSharp/RestClient.cs
@@ -75,8 +75,10 @@ public RestClient(Uri baseUrl) : this()
75
/// <param name="baseUrl"></param>
76
public RestClient(string baseUrl) : this()
77
{
78
- var uri = new Uri(baseUrl);
79
- BaseUrl = uri;
+ if (String.IsNullOrEmpty(baseUrl))
+ throw new ArgumentNullException("baseUrl");
80
+
81
+ BaseUrl = new Uri(baseUrl);
82
}
83
84
private IDictionary<string, IDeserializer> ContentHandlers { get; set; }
0 commit comments