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

Commit 6d68770

Browse files
Merge branch 'fixes/locks-might-be-null' into fixes/batching-repository-watcher
2 parents 3b049e0 + 1855e9b commit 6d68770

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ private void MaybeUpdateData()
240240
if (locksHaveChanged)
241241
{
242242
locksHaveChanged = false;
243-
lockedFiles = Repository.CurrentLocks.ToList();
243+
var repositoryCurrentLocks = Repository.CurrentLocks;
244+
lockedFiles = repositoryCurrentLocks != null
245+
? repositoryCurrentLocks.ToList()
246+
: new List<GitLock>();
244247
}
245248
}
246249

0 commit comments

Comments
 (0)