Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

fix nil ptr in stats puller #1911

Merged
merged 2 commits into from
Mar 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/controller/statspuller/handle_pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ func (c *Controller) HandlePullStats() http.Handler {
}
wg.Wait()

if errs := merr.WrappedErrors(); len(errs) > 0 {
if merr != nil {
errs := merr.WrappedErrors()
logger.Errorw("failed to pull stats", "errors", errs)
c.h.RenderJSON(w, http.StatusInternalServerError, &Result{
OK: false,
Expand Down