commit | 3bb854b7830f82923af016d7b6731496c5e70c74 | [log] [tgz] |
---|---|---|
author | Michael Kolb <kolby@google.com> | Mon Aug 01 10:45:16 2011 -0700 |
committer | Michael Kolb <kolby@google.com> | Mon Aug 01 10:45:21 2011 -0700 |
tree | dd3b49c1476e583ade412989c3cb8ee86a682eff | |
parent | c1eeb12b6e4570520c3571aba9c04be91b4a20d5 [diff] [blame] |
monkey-proofing animation Bug: 5103205 added view null check Change-Id: I5388213e05c65c4bb644757cc999bbdf052f3c49
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 @@ } 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) {