am 83e5941d: Fix NPE in Workspace

* commit '83e5941d8ef6ca33bdd6278f6089c8d6d00de942':
  Fix NPE in Workspace
This commit is contained in:
Adam Cohen
2014-09-18 00:40:38 +00:00
committed by Android Git Automerger
+1 -1
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);
}
}