Skip to content

Commit ec08af0

Browse files
committed
fix: null reference.
1 parent 85a418c commit ec08af0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Client/Default/Request.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public virtual IRequest WithArguments(object arguments)
119119

120120
var query = this.Message.RequestUri.ParseQueryString();
121121
foreach (var pair in dictionary)
122-
query.Add(pair.Key, pair.Value.ToString());
122+
query.Add(pair.Key, (pair.Value ?? "").ToString());
123123
string uri = this.Message.RequestUri.GetLeftPart(UriPartial.Path) + "?" + query;
124124
this.Message.RequestUri = new Uri(uri);
125125

Client/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.4.0.4")]
36-
[assembly: AssemblyFileVersion("0.4.0.4")]
35+
[assembly: AssemblyVersion("0.4.0.5")]
36+
[assembly: AssemblyFileVersion("0.4.0.5")]

Client/package.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>Pathoschild.Http.FluentClient</id>
5-
<version>0.4.0-alpha4</version>
5+
<version>0.4.0-alpha5</version>
66
<authors>Jesse Plamondon-Willard</authors>
77
<description>A fluent, strongly-typed HTTP client built on top of Microsoft's .NET 4.5 HttpClient.</description>
88
<tags>api wcf web webapi</tags>

0 commit comments

Comments
 (0)