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

Commit 8a53fe3

Browse files
authored
Merge pull request #1703 from jcansdale/fixes/newPullRequest-null-check
Don't pass null to GetPullRequestForCurrentBranch
2 parents 07fb7bd + 079fa98 commit 8a53fe3

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)