This commit is contained in:
leo 2021-08-06 11:19:22 +08:00
parent 0d34bd1c82
commit a66ee7c1d1

View file

@ -32,7 +32,7 @@ namespace SourceGit.Views.Widgets {
#region DATA
public void NavigateTo(string commit) {
if (string.IsNullOrEmpty(commit)) return;
if (string.IsNullOrEmpty(commit) || commitList == null || commitList.ItemsSource == null) return;
foreach (var item in commitList.ItemsSource) {
var c = item as Models.Commit;