fix(query_range): invalid memory address or nil pointer dereference (#1875)

Co-authored-by: Ankit Nayan <ankit@signoz.io>
This commit is contained in:
Srikanth Chekuri 2022-12-27 11:28:15 +05:30 committed by GitHub
parent 4b13b0a8a4
commit eef48c54f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1159,6 +1159,7 @@ func (aH *APIHandler) queryRangeMetrics(w http.ResponseWriter, r *http.Request)
RespondError(w, &model.ApiError{model.ErrorTimeout, res.Err}, nil) RespondError(w, &model.ApiError{model.ErrorTimeout, res.Err}, nil)
} }
RespondError(w, &model.ApiError{model.ErrorExec, res.Err}, nil) RespondError(w, &model.ApiError{model.ErrorExec, res.Err}, nil)
return
} }
response_data := &model.QueryData{ response_data := &model.QueryData{