From 4e1e50072ec449221bcc3aebc389a6acf8cf8a23 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 18 Dec 2024 17:45:30 +0300 Subject: [PATCH] Fix possible panic due to empty API response --- backuper/jira/jira-backuper.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backuper/jira/jira-backuper.go b/backuper/jira/jira-backuper.go index 941f585..515c795 100644 --- a/backuper/jira/jira-backuper.go +++ b/backuper/jira/jira-backuper.go @@ -149,6 +149,10 @@ func (b *JiraBackuper) Progress(taskID string) (string, error) { return "", fmt.Errorf("Can't download backup: backup task took too much time") } + if progressInfo == nil { + continue + } + b.dispatcher.Dispatch( backuper.EVENT_BACKUP_PROGRESS, &backuper.ProgressInfo{Message: progressInfo.Message, Progress: progressInfo.Progress},