Fix possible NPE in color picker dialog

This commit is contained in:
Peter Osterlund 2020-02-13 22:34:57 +01:00
parent c4621b0de3
commit b354b32bb7

View File

@ -55,6 +55,7 @@ public class AlphaPatternDrawable extends Drawable {
@Override @Override
public void draw(Canvas canvas) { public void draw(Canvas canvas) {
if (mBitmap != null)
canvas.drawBitmap(mBitmap, null, getBounds(), mPaint); canvas.drawBitmap(mBitmap, null, getBounds(), mPaint);
} }