Prevent crash

This commit is contained in:
M66B 2020-07-08 11:43:42 +02:00
parent 4fb5c00f97
commit 230df59478
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class ImageHelper {
}
static Bitmap makeCircular(Bitmap bitmap, Integer radius) {
if (bitmap == null)
if (bitmap == null || bitmap.isRecycled())
return null;
int w = bitmap.getWidth();