Permalink
Browse files

Fix issue with null ViewOptions

  • Loading branch information...
1 parent b83d1df commit 0b5384da4cf3df6afcb873b3b3cd95ce088bd4da @pagebrooks pagebrooks committed Dec 6, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 LoveSeat/CouchDatabase.cs
@@ -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>

0 comments on commit 0b5384d

Please sign in to comment.