Skip to content

Commit

Permalink
Merge pull request #4 from sreedharani/sree_seg_fault
Browse files Browse the repository at this point in the history
XPC-20740:GetActive() seg faults in very very corner case once in a while
  • Loading branch information
pt-nguyen committed Apr 25, 2024
2 parents 880e506 + 601d4a1 commit bfa088e
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 bfa088e

Please sign in to comment.