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")