From 2316a14a6736e8561a48425dcfd509c450200183 Mon Sep 17 00:00:00 2001 From: Haacked Date: Tue, 4 Aug 2015 21:15:02 -0700 Subject: [PATCH] Do not pass null into base class The base class ctor does not allow nulls. --- Octokit/Http/ReadOnlyPagedCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");