Fixes https://gitlab.com/kicad/code/kicad/-/issues/20152
@ -39,6 +39,9 @@ GIT_PULL_HANDLER::~GIT_PULL_HANDLER()
bool GIT_PULL_HANDLER::PerformFetch()
{
if( !m_repo )
return false;
// Fetch updates from remote repository
git_remote* remote = nullptr;
@ -2623,7 +2623,7 @@ void PROJECT_TREE_PANE::onGitSyncTimer( wxTimerEvent& aEvent )
KIGIT_COMMON* gitCommon = m_TreeProject->GitCommon();
if( !gitCommon || !gitCommon->GetRepo() )
if( !gitCommon )
return;
GIT_PULL_HANDLER handler( gitCommon );