From d7b01ea68f7568b13849d4450367d6ae3d9f8ef7 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 23 Mar 2023 12:19:17 +0700 Subject: [PATCH] save --- state/locality_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/locality_index.go b/state/locality_index.go index 8d8ef8c4a..933e5a7e2 100644 --- a/state/locality_index.go +++ b/state/locality_index.go @@ -201,7 +201,7 @@ func (li *LocalityIndex) MakeContext() *ctxLocalityIdx { file: li.roFiles.Load(), bm: li.roBmFile.Load(), } - if x.file.src != nil { + if x.file != nil && x.file.src != nil { x.file.src.refcount.Add(1) } return x