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

Commit c17b35d

Browse files
Updating log assert message
1 parent 3b84532 commit c17b35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.App/Services/RepositoryForkService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ await SwitchRemotes(activeRepo, updateOrigin ? destinationRepository.CloneUrl.To
109109
vsGitExt.RefreshActiveRepositories();
110110

111111
var updatedRepository = vsGitExt.ActiveRepositories.FirstOrDefault();
112-
log.Assert(updatedRepository.CloneUrl == destinationRepository.CloneUrl,
113-
"CloneUrl is {UpdatedRepository} not {DestinationRepository}", updatedRepository.CloneUrl, destinationRepository.CloneUrl);
112+
log.Assert(updatedRepository?.CloneUrl == destinationRepository.CloneUrl,
113+
"CloneUrl is {UpdatedRepository} not {DestinationRepository}", updatedRepository?.CloneUrl ?? "[NULL]", destinationRepository.CloneUrl);
114114
}
115115

116116
return new object();

0 commit comments

Comments
 (0)