From e4e1cd1de2cbdb5f6e8e6b905a98a4ad8109e3ab Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 16 Jul 2020 19:14:49 +0300 Subject: [PATCH] app/vmselect: fix `nil pointer dereference` panic when unsuccessfully querying `vmstorage` --- app/vmselect/netstorage/netstorage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmselect/netstorage/netstorage.go b/app/vmselect/netstorage/netstorage.go index 73be90308..54b13952e 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -227,7 +227,7 @@ func (pts *packedTimeseries) Unpack(dst *Result, tr storage.TimeRange, fetchData } if firstErr == nil { sbs = append(sbs, upw.sb) - } else { + } else if upw.sb != nil { putSortBlock(upw.sb) } }