am 539ed9df: PASSION ONLY - fix npe
Merge commit '539ed9dfee12564f0bf43822481c7a9b81e5d8b7'
* commit '539ed9dfee12564f0bf43822481c7a9b81e5d8b7':
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;
}
}