diff options
author | d34d <clark@cyngn.com> | 2014-08-28 15:12:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyngn.com> | 2014-08-28 15:12:17 +0000 |
commit | 76a86390365f3c1760799907919eb07ca4837d38 (patch) | |
tree | 09e8c90aff6b14642d935e96ea73b44dec04078b | |
parent | 81522f907ddc74cda9d730de83cb5ea76bc06e00 (diff) | |
parent | 03054201338abdb63c0e14a0a8494427adb6e758 (diff) | |
download | packages_apps_ThemeChooser-76a86390365f3c1760799907919eb07ca4837d38.zip packages_apps_ThemeChooser-76a86390365f3c1760799907919eb07ca4837d38.tar.gz packages_apps_ThemeChooser-76a86390365f3c1760799907919eb07ca4837d38.tar.bz2 |
Merge "Make sure info isn't null before accessing it" into cm-11.0
-rw-r--r-- | src/android/support/v4/view/ThemeViewPager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/support/v4/view/ThemeViewPager.java b/src/android/support/v4/view/ThemeViewPager.java index 8410e68..957504f 100644 --- a/src/android/support/v4/view/ThemeViewPager.java +++ b/src/android/support/v4/view/ThemeViewPager.java @@ -133,7 +133,7 @@ public class ThemeViewPager extends ViewPager { for(int i=0; i < getChildCount(); i++) { View v = getChildAt(i); ItemInfo info = infoForChild(v); - if (position == info.position) { + if (info != null && position == info.position) { view = v; break; } |