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,7 +55,8 @@ public class AlphaPatternDrawable extends Drawable {
@Override @Override
public void draw(Canvas canvas) { public void draw(Canvas canvas) {
canvas.drawBitmap(mBitmap, null, getBounds(), mPaint); if (mBitmap != null)
canvas.drawBitmap(mBitmap, null, getBounds(), mPaint);
} }
@Override @Override