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

Commit 222f635

Browse files
committed
Don't throw when changing to non-Git solution
1 parent 7e51779 commit 222f635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.InlineReviews/Services/PullRequestStatusBarManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void StartShowingStatus()
8686

8787
async Task RefreshCurrentSession(LocalRepositoryModel repository, IPullRequestSession session)
8888
{
89-
if (repository.HasRemotesButNoOrigin)
89+
if (repository != null && repository.HasRemotesButNoOrigin)
9090
{
9191
NoRemoteOriginCallout();
9292
}

0 commit comments

Comments
 (0)