Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03dd983b authored by Dan Sandler's avatar Dan Sandler Committed by John Spurlock
Browse files

Don't crash if user profile bitmap is null.

Bug: 16398850
Change-Id: Ie8ddb0841af255bbde098a213cb0ec1690d14c4c
parent 1fd9aeef
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ public class BitmapHelper {
     * @return A shiny new bitmap for you to use
     */
    public static Bitmap createCircularClip(Bitmap input, int width, int height) {
        if (input == null) return null;

        final int inWidth = input.getWidth();
        final int inHeight = input.getHeight();
        final Bitmap output = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);