From 48cd897609bf2c9c4689a018a088cc7826afb9e6 Mon Sep 17 00:00:00 2001 From: Sree Oggu Date: Wed, 17 Apr 2024 16:18:32 -0700 Subject: [PATCH] XPC-20740:GetActive() seg faults in very very corner case once in a while --- local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local.go b/local.go index c9f9447..70f666b 100644 --- a/local.go +++ b/local.go @@ -195,7 +195,7 @@ func (c *localCache) GetActive(k Key) (Value, error) { return nil, err } en := c.cache.get(k, sum(k)) - if ! en.getInvalidated() { + if en != nil && ! en.getInvalidated() { return obj, nil } return nil, errors.New ("entry invalidated")