Skip to content

Commit 04773e3

Browse files
committed
[GH Usage] Added null check
1 parent 7b56623 commit 04773e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGetGallery.Core/GitHub/RepositoryInformation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public RepositoryInformation(
2020
throw new IndexOutOfRangeException(string.Format("{0} cannot have a negative value!", nameof(stars)));
2121
}
2222

23-
Id = id;
23+
Id = id ?? throw new ArgumentNullException(nameof(id));
2424
var idSplit = Id.Split('/');
2525
if (idSplit.Length == 2)
2626
{

0 commit comments

Comments
 (0)