From 539ed9dfee12564f0bf43822481c7a9b81e5d8b7 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 2 Oct 2009 10:22:14 -0700 Subject: [PATCH] PASSION ONLY - fix npe --- src/com/android/launcher2/AllAppsView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } }