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

Commit 8e800c8

Browse files
authored
Merge pull request #421 from github/fixes/419-nongit-repo-nullref
Verify source code is not in a git repo in context menu checks
2 parents 16cdf7c + a5652dd commit 8e800c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.VisualStudio/Base/MenuBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected async Task<bool> IsGitHubRepo()
113113
{
114114
RefreshRepo();
115115

116-
var uri = ActiveRepo.CloneUrl;
116+
var uri = ActiveRepo?.CloneUrl;
117117
if (uri == null)
118118
return false;
119119

0 commit comments

Comments
 (0)