diff options
author | Joe Onorato <joeo@android.com> | 2009-10-02 10:22:14 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-10-02 10:22:23 -0700 |
commit | 539ed9dfee12564f0bf43822481c7a9b81e5d8b7 (patch) | |
tree | be4b5f7ec3cef4fd8dfd9f23cef8211f9cb5c1e5 | |
parent | 08b5dfe0b9df76db513e0a14f4d0e20701e1c2f2 (diff) | |
download | android_packages_apps_Trebuchet-539ed9dfee12564f0bf43822481c7a9b81e5d8b7.tar.gz android_packages_apps_Trebuchet-539ed9dfee12564f0bf43822481c7a9b81e5d8b7.tar.bz2 android_packages_apps_Trebuchet-539ed9dfee12564f0bf43822481c7a9b81e5d8b7.zip |
PASSION ONLY - fix npe
-rw-r--r-- | src/com/android/launcher2/AllAppsView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 613cd9733..653ac289a 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; } } |