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

Commit 58678d9

Browse files
committed
Merge branch 'shana/23-crash' into beta-1.0.12
2 parents 890642f + 4bed6e1 commit 58678d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GitHub.VisualStudio/Base/TeamExplorerServiceHolder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Microsoft.VisualStudio.TeamFoundation.Git.Extensibility;
1111
using System.Linq;
1212
using System.Threading;
13+
using System.Globalization;
1314

1415
namespace GitHub.VisualStudio.Base
1516
{
@@ -133,8 +134,11 @@ async void UIContextChanged(bool active)
133134
// and try again. See issue #23
134135
if (repos == null)
135136
{
137+
VsOutputLogger.WriteLine(string.Format(CultureInfo.CurrentCulture, "Error 2001: ActiveRepositories is null. GitService: '{0}'", GitService));
136138
GitService = ServiceProvider?.GetService<IGitExt>();
137139
repos = GitService?.ActiveRepositories;
140+
if (repos == null)
141+
VsOutputLogger.WriteLine(string.Format(CultureInfo.CurrentCulture, "Error 2002: ActiveRepositories is null. GitService: '{0}'", GitService));
138142
}
139143
return repos?.FirstOrDefault();
140144
});

0 commit comments

Comments
 (0)