Skip to content

Commit

Permalink
Fix possible panic due to empty API response
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Dec 18, 2024
1 parent ec26d42 commit 4e1e500
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backuper/jira/jira-backuper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 4e1e500

Please sign in to comment.