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

Commit ebc6691

Browse files
authored
Merge pull request #221 from github-for-unity/fixes/history-view-null-check
Adding null check to HistoryView
2 parents c7cf943 + 11b3b1f commit ebc6691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private void OnLogUpdate(List<GitLogEntry> entries)
224224

225225
private void MaybeUpdateData()
226226
{
227-
isPublished = Repository.CurrentRemote.HasValue;
227+
isPublished = Repository != null && Repository.CurrentRemote.HasValue;
228228
currentRemote = isPublished ? Repository.CurrentRemote.Value.Name : "placeholder";
229229

230230
if (!updated)

0 commit comments

Comments
 (0)