Skip to content

Commit

Permalink
XPC-20740:GetActive() seg faults in very very corner case once in a w…
Browse files Browse the repository at this point in the history
…hile
  • Loading branch information
soggu46 committed Apr 17, 2024
1 parent 880e506 commit 48cd897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 48cd897

Please sign in to comment.