am 90f9f957: am 83e5941d: Fix NPE in Workspace

* commit '90f9f9577322205ff6f17bdc22fea9954b1ff783':
  Fix NPE in Workspace
This commit is contained in:
Adam Cohen 2014-09-18 00:46:46 +00:00 committed by Android Git Automerger
commit 1025eeb175
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}