Skip to content

Commit

Permalink
Fix ImageAssetManager.bitmapForId NPE crash, add id in Logger output
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQI authored and TechQI committed Aug 9, 2022
1 parent 693c9d9 commit 5aca68a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ public void setDelegate(@Nullable ImageAssetDelegate assetDelegate) {
return null;
}
if (bitmap == null) {
Logger.warning("Decoded image is NULL.");
return null;
Logger.warning("Decoded image `" + id + "` is null.");
return null;
}
bitmap = Utils.resizeBitmapIfNeeded(bitmap, asset.getWidth(), asset.getHeight());
return putBitmap(id, bitmap);
Expand Down

0 comments on commit 5aca68a

Please # to comment.