From eef48c54f837f0d5f0614ab0767afd973c3169d4 Mon Sep 17 00:00:00 2001 From: Srikanth Chekuri Date: Tue, 27 Dec 2022 11:28:15 +0530 Subject: [PATCH] fix(query_range): invalid memory address or nil pointer dereference (#1875) Co-authored-by: Ankit Nayan --- pkg/query-service/app/http_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.go index cb1ef91dff..69c0f92b8d 100644 --- a/pkg/query-service/app/http_handler.go +++ b/pkg/query-service/app/http_handler.go @@ -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.ErrorExec, res.Err}, nil) + return } response_data := &model.QueryData{