From 5c26a6fe742fda0a6619f4897958f9b497cdfad1 Mon Sep 17 00:00:00 2001 From: Patrik Segedy Date: Wed, 15 Nov 2023 16:53:22 +0100 Subject: [PATCH] RHINENG-2610: don't panic when latestRepoChange is nil --- tasks/vmaas_sync/repo_based.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/vmaas_sync/repo_based.go b/tasks/vmaas_sync/repo_based.go index cb7742081..eb87fdab6 100644 --- a/tasks/vmaas_sync/repo_based.go +++ b/tasks/vmaas_sync/repo_based.go @@ -94,6 +94,9 @@ func getUpdatedRepos(syncStart time.Time, modifiedSince *string) ([]string, []st break } + if repos.LatestRepoChange == nil { + break + } latestRepoChange = repos.LatestRepoChange.Time() utils.LogInfo("page", page, "pages", repos.Pages, "count", len(repos.RepositoryList),