diff options
author | Michael Kolb <kolby@google.com> | 2011-11-16 10:35:10 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-11-16 10:35:10 -0800 |
commit | 5685ce6b4ebd5fb8a1c70390c0719f33d0c8e44d (patch) | |
tree | 522adf8929aed423a6061799bb0bf945afd095db /src | |
parent | ef6f60fe9b8a1f3426835b35f579ce5980d4ca33 (diff) | |
download | packages_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.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) { |