summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/browser/NavTabGallery.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/NavTabGallery.java b/src/com/android/browser/NavTabGallery.java
index 8aa2782..af02e8d 100644
--- a/src/com/android/browser/NavTabGallery.java
+++ b/src/com/android/browser/NavTabGallery.java
@@ -127,7 +127,7 @@ public class NavTabGallery extends Gallery {
}
private void animateOut(final View v, float velocity) {
- if (mAnimator != null) return;
+ if ((v == null) || (mAnimator != null)) return;
final int position = mFirstPosition + indexOfChild(v);
int target = 0;
if (velocity < 0) {