mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
fix<Clone>: fix crash after clone a new repository
This commit is contained in:
parent
faffba09c8
commit
79084c9a9a
4 changed files with 12 additions and 9 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue