Fix NPE in Workspace
Bug: 17503479 Change-Id: Ib20dfd67c5a755cd4b684163bb538a1bf77fa6ca
This commit is contained in:
@@ -1107,7 +1107,7 @@ public class Workspace extends SmoothPagedView
|
||||
case MotionEvent.ACTION_UP:
|
||||
if (mTouchState == TOUCH_STATE_REST) {
|
||||
final CellLayout currentPage = (CellLayout) getChildAt(mCurrentPage);
|
||||
if (!currentPage.lastDownOnOccupiedCell()) {
|
||||
if (currentPage != null && !currentPage.lastDownOnOccupiedCell()) {
|
||||
onWallpaperTap(ev);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user