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

Commit cd1d63f

Browse files
ThomasAunvikshana
authored andcommitted
GitLocks NullReferenceException (#779)
Initialize fields correctly on Changes view. Fixes #787
1 parent 8a58e3e commit cd1d63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class ChangesView : Subview
3131
[SerializeField] private Vector2 treeScroll;
3232
[SerializeField] private ChangesTree treeChanges = new ChangesTree { DisplayRootNode = false, IsCheckable = true, IsUsingGlobalSelection = true };
3333

34-
[SerializeField] private HashSet<NPath> gitLocks;
35-
[SerializeField] private List<GitStatusEntry> gitStatusEntries;
34+
[SerializeField] private HashSet<NPath> gitLocks = new HashSet<NPath>();
35+
[SerializeField] private List<GitStatusEntry> gitStatusEntries = new List<GitStatusEntry>();
3636

3737
[SerializeField] private string changedFilesText = NoChangedFilesLabel;
3838

0 commit comments

Comments
 (0)