diff options
author | Michael Kolb <kolby@google.com> | 2011-11-17 05:45:58 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-17 05:45:58 -0800 |
commit | 9eeb929f88cd9abb64222f27d5d1140f0b886e95 (patch) | |
tree | 5ff1cbd2802a4b626618c3e3d90f594c934fc61a /src | |
parent | 710b1d37a4d0b8b32ec6b84a4e59de5057ea3e5b (diff) | |
parent | b217888b48e01cdd92db7efa67d0ba8347c8538d (diff) | |
download | packages_apps_browser-9eeb929f88cd9abb64222f27d5d1140f0b886e95.zip packages_apps_browser-9eeb929f88cd9abb64222f27d5d1140f0b886e95.tar.gz packages_apps_browser-9eeb929f88cd9abb64222f27d5d1140f0b886e95.tar.bz2 |
am b217888b: Merge "Prevent NPE in NavTabScroller" into ics-mr1
* commit 'b217888b48e01cdd92db7efa67d0ba8347c8538d':
Prevent NPE in NavTabScroller
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/browser/NavTabScroller.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/browser/NavTabScroller.java b/src/com/android/browser/NavTabScroller.java index 0bfe185..c940bf5 100644 --- a/src/com/android/browser/NavTabScroller.java +++ b/src/com/android/browser/NavTabScroller.java @@ -241,6 +241,7 @@ public class NavTabScroller extends ScrollerView { void snapToSelected(int pos, boolean smooth) { if (pos < 0) return; View v = mContentView.getChildAt(pos); + if (v == null) return; int sx = 0; int sy = 0; if (mHorizontal) { |