fix<Clone>: fix crash after clone a new repository

This commit is contained in:
leo 2024-02-22 11:05:20 +08:00
parent faffba09c8
commit 79084c9a9a
4 changed files with 12 additions and 9 deletions

View file

@ -106,12 +106,12 @@ namespace SourceGit.ViewModels {
[JsonIgnore]
public int WorkingCopyChangesCount {
get => _workingCopy.Count;
get => _workingCopy == null ? 0 : _workingCopy.Count;
}
[JsonIgnore]
public int StashesCount {
get => _stashesPage.Count;
get => _stashesPage == null ? 0 : _stashesPage.Count;
}
[JsonIgnore]