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

Commit 188dc3e

Browse files
committed
Don't pass null to GetPullRequestForCurrentBranch
1 parent 7c18a9f commit 188dc3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/Services/TeamExplorerContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async void Refresh()
7878
var newBranchName = repo?.CurrentBranch?.Name;
7979
var newHeadSha = repo?.CurrentBranch?.Sha;
8080
var newTrackedSha = repo?.CurrentBranch?.TrackedSha;
81-
var newPullRequest = await pullRequestService.GetPullRequestForCurrentBranch(repo);
81+
var newPullRequest = repo != null ? await pullRequestService.GetPullRequestForCurrentBranch(repo) : null;
8282

8383
if (newRepositoryPath != repositoryPath)
8484
{

0 commit comments

Comments
 (0)