We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de92bb commit f204a74Copy full SHA for f204a74
src/ViewModels/WorkingCopy.cs
@@ -405,7 +405,7 @@ public void CommitWithPush()
405
406
public ContextMenu CreateContextMenuForUnstagedChanges()
407
{
408
- if (_selectedUnstaged.Count == 0)
+ if (_selectedUnstaged == null || _selectedUnstaged.Count == 0)
409
return null;
410
411
var menu = new ContextMenu();
@@ -691,7 +691,7 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
691
692
public ContextMenu CreateContextMenuForStagedChanges()
693
694
- if (_selectedStaged.Count == 0)
+ if (_selectedStaged == null || _selectedStaged.Count == 0)
695
696
697
0 commit comments