diff --git a/src/Views/Popups/Remote.xaml.cs b/src/Views/Popups/Remote.xaml.cs index 3d48b5e0..deb09322 100644 --- a/src/Views/Popups/Remote.xaml.cs +++ b/src/Views/Popups/Remote.xaml.cs @@ -28,7 +28,7 @@ namespace SourceGit.Views.Popups { InitializeComponent(); ruleName.Repo = repo; - if (RemoteURL.StartsWith("git@")) { + if (!string.IsNullOrEmpty(RemoteURL) && RemoteURL.StartsWith("git@")) { txtSSHKey.Text = new Commands.Config(repo.Path).Get($"remote.{remote.Name}.sshkey"); } else { txtSSHKey.Text = "";