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
Review URL: https://codereview.chromium.org/1537343002
Cr-Commit-Position: refs/heads/master@{#367802}
(cherry picked from commit 843010ff7eeda6e9e87347aaaa6365efecd1161d)
Committed: https://chromium.googlesource.com/chromium/src/+/9f80eae6508185f7aed39f1f91a301d9ca18978a
Patch Set 1 #Messages
Total messages: 3 (1 generated)
|