Verify Cluster object before calculating long query time stat.

This commit is contained in:
Michael Baird 2017-05-30 16:49:04 -05:00
parent d2fbc0a08f
commit 00e60247f6

View file

@ -142,7 +142,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.Router.ServeHTTP(w, r)
dif := time.Since(t)
if h.Holder != nil {
if h.Holder != nil && h.Cluster != nil {
// Handle some stats tagging
statsTags := make([]string, 0, 3)