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

Commit b6b9950d authored by Winson Chung's avatar Winson Chung
Browse files

Fixing NPE when checking locked state.

- Regression from change 9f4ab32b.

Change-Id: I31ada9f4c051cf0aaa9a7bfa54c1b9bda1c64c16
Fixes: b/33738356
Test: Dock an app repeatedly
parent df2b94fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ public class TaskViewThumbnail extends View {
        int thumbnailHeight = Math.min(viewHeight,
                (int) (mThumbnailRect.height() * mThumbnailScale));

        if (mTask.isLocked) {
        if (mTask != null && mTask.isLocked) {
            canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius,
                    mLockedPaint);
        } else if (mBitmapShader != null && thumbnailWidth > 0 && thumbnailHeight > 0) {