You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Canvas: fix NullPointerException in setBitmap()
This commit is contained in:
@@ -380,7 +380,7 @@ public class Canvas {
|
||||
}
|
||||
|
||||
public void setBitmap(Bitmap bitmap) {
|
||||
if (!bitmap.isMutable()) {
|
||||
if (bitmap != null && !bitmap.isMutable()) {
|
||||
throw new IllegalStateException("Bitmap must be mutable");
|
||||
}
|
||||
this.bitmap = bitmap;
|
||||
|
||||
Reference in New Issue
Block a user