DescriptionFix null dereference on MemoryCache.
Usually a valid MemoryCacheEntry holds a non-null Resource as |m_resource|. But
when we hold a valid MemoryCacheEntry beyond destructive statements, it may be
evicted from the cache and get stale. That means |m_resource| can be null in
such cases. This CL checks it in order to avoid null dereference.
BUG=488373
Committed: https://crrev.com/5de01d904d77ba5e5beaf4776e45e6eecd47a87b
Cr-Commit-Position: refs/heads/master@{#367779}
Committed: https://crrev.com/843010ff7eeda6e9e87347aaaa6365efecd1161d
Cr-Commit-Position: refs/heads/master@{#367802}
Patch Set 1 #Patch Set 2 : with test, without fix #Patch Set 3 : with test & fix #Patch Set 4 : #Patch Set 5 : #Messages
Total messages: 42 (22 generated)
|