Skip to content

Commit

Permalink
Added check bitmap is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
yunyh committed Nov 9, 2024
1 parent b811e9c commit 104a082
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,10 @@ private static LottieResult<LottieComposition> fromZipStreamSyncInternal(@Nullab
return null;
}
Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, opts);
bitmap = Utils.resizeBitmapIfNeeded(bitmap, asset.getWidth(), asset.getHeight());
asset.setBitmap(bitmap);
if (bitmap != null) {
bitmap = Utils.resizeBitmapIfNeeded(bitmap, asset.getWidth(), asset.getHeight());
asset.setBitmap(bitmap);
}
}
}
}
Expand Down

0 comments on commit 104a082

Please sign in to comment.