Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7b7ebdf

Browse files
Add a null check to AndroidImageGenerator::GetPixels (#34149)
1 parent 2857531 commit 7b7ebdf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/platform/android/android_image_generator.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ bool AndroidImageGenerator::GetPixels(const SkImageInfo& info,
5252
std::optional<unsigned int> prior_frame) {
5353
fully_decoded_latch_.Wait();
5454

55+
if (!software_decoded_data_) {
56+
return false;
57+
}
58+
5559
if (kRGBA_8888_SkColorType != info.colorType()) {
5660
return false;
5761
}

0 commit comments

Comments
 (0)