summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-11-16 10:35:10 -0800
committerMichael Kolb <kolby@google.com>2011-11-16 10:35:10 -0800
commit5685ce6b4ebd5fb8a1c70390c0719f33d0c8e44d (patch)
tree522adf8929aed423a6061799bb0bf945afd095db /src
parentef6f60fe9b8a1f3426835b35f579ce5980d4ca33 (diff)
downloadpackages_apps_browser-5685ce6b4ebd5fb8a1c70390c0719f33d0c8e44d.zip
packages_apps_browser-5685ce6b4ebd5fb8a1c70390c0719f33d0c8e44d.tar.gz
packages_apps_browser-5685ce6b4ebd5fb8a1c70390c0719f33d0c8e44d.tar.bz2
Prevent NPE in NavTabScroller
Bug: 5619924 Monkey see, but Monkey don't do. Change-Id: I807693425eea93c6cb8cf616f2ff7f8f0827026e
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/NavTabScroller.java1
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) {