mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
4fb5c00f97
commit
230df59478
|
@ -172,7 +172,7 @@ class ImageHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bitmap makeCircular(Bitmap bitmap, Integer radius) {
|
static Bitmap makeCircular(Bitmap bitmap, Integer radius) {
|
||||||
if (bitmap == null)
|
if (bitmap == null || bitmap.isRecycled())
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
int w = bitmap.getWidth();
|
int w = bitmap.getWidth();
|
||||||
|
|
Loading…
Reference in New Issue