Fix crash with fence ROAM

closes #440
This commit is contained in:
tidwall 2019-04-23 11:16:55 -07:00
parent 1726ff9eef
commit bb33467da1
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ func fenceMatch(
}
sw.mu.Lock()
var distance float64
if fence.distance {
if fence.distance && fence.obj != nil {
distance = details.obj.Distance(fence.obj)
}
sw.fmap = details.fmap