Commit 4a300874 authored by Shakti Sahu's avatar Shakti Sahu Committed by Chromium LUCI CQ

Fixed an NPE with GIF image

Bug: 1164291
Change-Id: Ia933a150bde0830d23f88f33a1ebc1a78819a74f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616807Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841522}
parent 0eeed13b
......@@ -84,7 +84,8 @@ public class VideoIPHCoordinatorImpl implements VideoIPHCoordinator {
ImageFetcher.VIDEO_TUTORIALS_IPH_UMA_CLIENT_NAME, widthPx, heightPx);
if (useAnimatedGifUrl) {
mImageFetcher.fetchGif(params, gifImage -> {
BaseGifDrawable baseGifDrawable = new BaseGifDrawable(gifImage, Config.ARGB_8888);
BaseGifDrawable baseGifDrawable =
gifImage == null ? null : new BaseGifDrawable(gifImage, Config.ARGB_8888);
consumer.onResult(baseGifDrawable);
});
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment