diff --git a/src/Views/Popups/Pull.xaml.cs b/src/Views/Popups/Pull.xaml.cs index a479b4b8..745a5ecf 100644 --- a/src/Views/Popups/Pull.xaml.cs +++ b/src/Views/Popups/Pull.xaml.cs @@ -18,6 +18,8 @@ namespace SourceGit.Views.Popups { InitializeComponent(); var current = repo.Branches.Find(x => x.IsCurrent); + if (current == null) return; + txtInto.Text = current.Name; if (prefered == null && !string.IsNullOrEmpty(current.Upstream)) {