From 14dc426b45d8d7e30b8d78b68ce3dd3ceb2052e1 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 937628c8f..3c4e00796 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -234,7 +234,7 @@ func (pts *packedTimeseries) Unpack(tbf *tmpBlocksFile, dst *Result, tr storage. } if firstErr == nil { sbs = append(sbs, upw.sb) - } else { + } else if upw.sb != nil { putSortBlock(upw.sb) } }