diff --git a/Octokit/Http/ReadOnlyPagedCollection.cs b/Octokit/Http/ReadOnlyPagedCollection.cs index d310c641..18e6f074 100644 --- a/Octokit/Http/ReadOnlyPagedCollection.cs +++ b/Octokit/Http/ReadOnlyPagedCollection.cs @@ -11,7 +11,7 @@ namespace Octokit.Internal readonly Func>>> _nextPageFunc; public ReadOnlyPagedCollection(IApiResponse> response, Func>>> nextPageFunc) - : base(response != null ? response.Body : null) + : base(response != null ? response.Body : new List()) { Ensure.ArgumentNotNull(response, "response"); Ensure.ArgumentNotNull(nextPageFunc, "nextPageFunc");