diff options
author | Michael W <baddaemon87@gmail.com> | 2016-10-22 13:12:46 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-11-04 13:15:06 -0700 |
commit | beec60c940e6a50046d4c7c469b9381492f8b77a (patch) | |
tree | 256eb99bdbdcc6b59d2ccc7130ac99a2710e0705 /res/values-sw640dp/styles.xml | |
parent | 832a6b06aad4ecd3f2c0817c071958ce64b1d04f (diff) | |
download | android_packages_apps_Snap-beec60c940e6a50046d4c7c469b9381492f8b77a.tar.gz android_packages_apps_Snap-beec60c940e6a50046d4c7c469b9381492f8b77a.tar.bz2 android_packages_apps_Snap-beec60c940e6a50046d4c7c469b9381492f8b77a.zip |
Snap: Fix possible RuntimeException (due to NPE)
When the pref can't be found, index "-1" is returned, causing an NPE
resulting in an RTE. Add check for a positive index before accessing the
array
Change-Id: Ifa80077c2090a9df449be608feaf4390c875ff0f
Reference: BugDumps 13-20161014-20 L#40
Diffstat (limited to 'res/values-sw640dp/styles.xml')
0 files changed, 0 insertions, 0 deletions