fix<Pull>: fix crash when there's no local branches

This commit is contained in:
leo 2021-06-15 16:14:16 +08:00
parent a965e4e2b4
commit 8fe7871b59

View file

@ -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)) {