Skip to content

Commit

Permalink
catching null return value (#14535)
Browse files Browse the repository at this point in the history
- bug fix causing users with no votes to not be able to start Dynamo because of unhandled null exception
  • Loading branch information
dnenov authored Oct 30, 2023
1 parent 923663e commit f665018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamoPackages/PackageManagerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ internal List<string> UserVotes()
return pkgResponse.content;
}, null);

return votes.has_upvoted;
return votes?.has_upvoted;
}

internal PackageManagerResult DownloadPackage(string packageId, string version, out string pathToPackage)
Expand Down

0 comments on commit f665018

Please sign in to comment.