Skip to content

Commit

Permalink
green: implemented ReadOnlyPagedCollectionTests.TheConstructor.Accept…
Browse files Browse the repository at this point in the history
…sAResponseWithANullBody
  • Loading branch information
adamralph committed Sep 17, 2015
1 parent 4580e0f commit afc8c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Octokit/Http/ReadOnlyPagedCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ReadOnlyPagedCollection<T> : ReadOnlyCollection<T>, IReadOnlyPagedC
readonly Func<Uri, Task<IApiResponse<List<T>>>> _nextPageFunc;

public ReadOnlyPagedCollection(IApiResponse<List<T>> response, Func<Uri, Task<IApiResponse<List<T>>>> nextPageFunc)
: base(response != null ? response.Body : new List<T>())
: base(response != null ? response.Body ?? new List<T>() : new List<T>())
{
Ensure.ArgumentNotNull(response, "response");
Ensure.ArgumentNotNull(nextPageFunc, "nextPageFunc");
Expand Down

0 comments on commit afc8c2e

Please sign in to comment.