Skip to content

Commit

Permalink
Fix issue with null ViewOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pagebrooks committed Dec 6, 2012
1 parent b83d1df commit 0b5384d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LoveSeat/CouchDatabase.cs
Expand Up @@ -363,7 +363,12 @@ public void SetDefaultDesignDoc(string designDoc)
throw new CouchException(req.GetRequest(), resp, resp.GetResponseString() + "\n" + req.GetRequest().RequestUri);
}

bool includeDocs = options.IncludeDocs ?? false;
bool includeDocs = false;
if (options != null)
{
includeDocs = options.IncludeDocs ?? false;
}

return new ViewResult<T>(resp, req.GetRequest(), ObjectSerializer, includeDocs);
}
/// <summary>
Expand Down

0 comments on commit 0b5384d

Please sign in to comment.