Skip to content

Commit

Permalink
Fixing .NET responses where value should legitimately be null
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Oct 14, 2015
1 parent b843bc9 commit b0e2f0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotnet/src/webdriver/Remote/Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ private Response(Dictionary<string, object> rawResponse, int protocolSpecLevel)

if (protocolSpecLevel > 0)
{
// If the returned object does *not* have a "value" property,
// then the responseValue member of the response will be null.
if (this.responseValue == null)
// If the returned object does *not* have a "value" property
// the response value should be the entirety of the response.
if (!rawResponse.ContainsKey("value") && this.responseValue == null)
{
this.responseValue = rawResponse;
}
Expand Down

0 comments on commit b0e2f0d

Please sign in to comment.