commit | 539ed9dfee12564f0bf43822481c7a9b81e5d8b7 | [log] [tgz] |
---|---|---|
author | Joe Onorato <joeo@android.com> | Fri Oct 02 10:22:14 2009 -0700 |
committer | Joe Onorato <joeo@android.com> | Fri Oct 02 10:22:23 2009 -0700 |
tree | be4b5f7ec3cef4fd8dfd9f23cef8211f9cb5c1e5 | |
parent | 08b5dfe0b9df76db513e0a14f4d0e20701e1c2f2 [diff] [blame] |
PASSION ONLY - fix npe
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 613cd97..653ac28 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java
@@ -288,8 +288,10 @@ } mLastMotionX = -10000; - mVelocity.recycle(); - mVelocity = null; + if (mVelocity != null) { + mVelocity.recycle(); + mVelocity = null; + } break; } }