From f665018c5b5019b2e129d772fbb494accf840f17 Mon Sep 17 00:00:00 2001 From: Deyan Nenov Date: Mon, 30 Oct 2023 20:18:14 +0000 Subject: [PATCH] catching null return value (#14535) - bug fix causing users with no votes to not be able to start Dynamo because of unhandled null exception --- src/DynamoPackages/PackageManagerClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DynamoPackages/PackageManagerClient.cs b/src/DynamoPackages/PackageManagerClient.cs index e793b06f993..96b5bd99984 100644 --- a/src/DynamoPackages/PackageManagerClient.cs +++ b/src/DynamoPackages/PackageManagerClient.cs @@ -74,7 +74,7 @@ internal List UserVotes() return pkgResponse.content; }, null); - return votes.has_upvoted; + return votes?.has_upvoted; } internal PackageManagerResult DownloadPackage(string packageId, string version, out string pathToPackage)