mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix<Histories>: fix crash reported by https://gitee.com/sourcegit/sourcegit/issues/I4468X
This commit is contained in:
parent
0d34bd1c82
commit
a66ee7c1d1
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ namespace SourceGit.Views.Widgets {
|
||||||
|
|
||||||
#region DATA
|
#region DATA
|
||||||
public void NavigateTo(string commit) {
|
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) {
|
foreach (var item in commitList.ItemsSource) {
|
||||||
var c = item as Models.Commit;
|
var c = item as Models.Commit;
|
||||||
|
|
Loading…
Reference in a new issue