Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 64dcb97

Browse files
committed
CloneUrl can be null but Owner should never be.
1 parent 42c1e44 commit 64dcb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Exports/Models/RepositoryModelBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected set
7676
/// <summary>
7777
/// Gets the name of the owner of the repository, taken from the clone URL.
7878
/// </summary>
79-
public string Owner => CloneUrl.Owner;
79+
public string Owner => CloneUrl?.Owner ?? string.Empty;
8080

8181
/// <summary>
8282
/// Gets an icon for the repository that displays its private and fork state.

0 commit comments

Comments
 (0)