Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 7a50a92

Browse files
committed
Don't try to use a remote if there isn't one
1 parent 23fcbfd commit 7a50a92

File tree

1 file changed

+2
-2
lines changed
  • src/UnityExtension/Assets/Editor/GitHub.Unity/UI

1 file changed

+2
-2
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ private bool MaybeUpdateData(out string repoRemote)
206206
repoDataChanged = true;
207207
}
208208

209-
210-
repoRemote = Repository.CurrentRemote.Value.Name;
209+
if (Repository.CurrentRemote.HasValue)
210+
repoRemote = Repository.CurrentRemote.Value.Name;
211211
}
212212
else if (!HasRepository)
213213
{

0 commit comments

Comments
 (0)