diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 613cd97337..653ac289ae 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -288,8 +288,10 @@ public class AllAppsView extends RSSurfaceView } mLastMotionX = -10000; - mVelocity.recycle(); - mVelocity = null; + if (mVelocity != null) { + mVelocity.recycle(); + mVelocity = null; + } break; } }