[IC] Fix null pointer exception when under memory pressure
The problem here is that between CachedImageFetcherImpl's FetchImage invocation and completion, destroy was called on InMemoryCachedImageFetcher. This causes an attempt to store the image in a null bitmap cache. This just checks if the bitmap cache is null before attempting to store an image. Bug: 910080 Change-Id: I28b7aaee8588d883cfaf98328e2e58478d452375 Reviewed-on: https://chromium-review.googlesource.com/c/1355770Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Sky Malice <skym@chromium.org> Reviewed-by:
Filip Gorski <fgorski@chromium.org> Commit-Queue: Brandon Wylie <wylieb@chromium.org> Cr-Commit-Position: refs/heads/master@{#612857}
Showing
Please register or sign in to comment