This commit is contained in:
alex.sharov 2023-03-23 12:19:17 +07:00
parent f110e80dab
commit d7b01ea68f

View File

@ -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