From 021ce52f8f6f2e61b6f4e76804580ebc06ace277 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Fri, 11 Oct 2024 02:13:59 +0200 Subject: [PATCH] ApplicationScope - Add 'Contributors' property to empty array if task returned null --- PCK-Studio/Internal/App/ApplicationScope.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCK-Studio/Internal/App/ApplicationScope.cs b/PCK-Studio/Internal/App/ApplicationScope.cs index 19f7109e..c6b9762f 100644 --- a/PCK-Studio/Internal/App/ApplicationScope.cs +++ b/PCK-Studio/Internal/App/ApplicationScope.cs @@ -56,7 +56,7 @@ namespace PckStudio.Internal.App var ghClient = new Octokit.GitHubClient(new Octokit.ProductHeaderValue(Application.ProductName + "Credits")); Task> allContributorsAct = ghClient.Repository.GetAllContributors("PhoenixARC", "-PCK-Studio"); allContributorsAct.Wait(); - Contributors = allContributorsAct.Result.ToArray(); + Contributors = allContributorsAct.Result.ToArray() ?? Array.Empty(); } } } \ No newline at end of file