diff --git a/pkg/gui/controllers/helpers/refresh_helper.go b/pkg/gui/controllers/helpers/refresh_helper.go index 2682d8296..dc396be3f 100644 --- a/pkg/gui/controllers/helpers/refresh_helper.go +++ b/pkg/gui/controllers/helpers/refresh_helper.go @@ -345,6 +345,10 @@ func (self *RefreshHelper) refreshCommitsWithLimit() error { } func (self *RefreshHelper) refreshSubCommitsWithLimit() error { + if self.c.Contexts().SubCommits.GetRef() == nil { + return nil + } + self.c.Mutexes().SubCommitsMutex.Lock() defer self.c.Mutexes().SubCommitsMutex.Unlock()