From 601d4a174f1d7279433800f964dc0fe8cfa7e4d1 Mon Sep 17 00:00:00 2001 From: Sree Oggu Date: Tue, 23 Apr 2024 13:01:15 -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")