diff --git a/src/Views/Widgets/Histories.xaml.cs b/src/Views/Widgets/Histories.xaml.cs index aeaa7942..f937d320 100644 --- a/src/Views/Widgets/Histories.xaml.cs +++ b/src/Views/Widgets/Histories.xaml.cs @@ -255,6 +255,8 @@ namespace SourceGit.Views.Widgets { commitList.SelectedItem = commit; var current = repo.Branches.Find(x => x.IsCurrent); + if (current == null) return; + var merged = commit.IsMerged; var menu = new ContextMenu(); var tags = new List();