Merge "Fixing NPE when checking locked state."
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd0f83f393
@@ -138,7 +138,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) {
|
||||
|
||||
Reference in New Issue
Block a user