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

Commit 95cf41c

Browse files
committed
Check Connection.IsLoggedIn.
Make sure the found connection is logged in, otherwise a null `User` will be passed to `ModelServiceFactory` and things break.
1 parent 6359067 commit 95cf41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/ViewModels/GitHubPane/GitHubPaneViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ async Task UpdateContent(ILocalRepositoryModel repository)
370370

371371
Connection = await connectionManager.GetConnection(hostAddress);
372372

373-
if (Connection != null)
373+
if (Connection?.IsLoggedIn == true)
374374
{
375375
navigator.Clear();
376376
Content = navigator;

0 commit comments

Comments
 (0)