summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-01-06 10:58:34 -0800
committercretin45 <cretin45@gmail.com>2016-01-06 10:59:25 -0800
commitaefd95eddee07e0874e234d8546f3a8d0afb8ce3 (patch)
tree7da755cb628f837dbe82a55d64ab491214263cf1 /src/com
parent72f2ccb08f297836d18b61d5d80de9fcd7a69042 (diff)
downloadandroid_packages_apps_Trebuchet-aefd95eddee07e0874e234d8546f3a8d0afb8ce3.tar.gz
android_packages_apps_Trebuchet-aefd95eddee07e0874e234d8546f3a8d0afb8ce3.tar.bz2
android_packages_apps_Trebuchet-aefd95eddee07e0874e234d8546f3a8d0afb8ce3.zip
Trebuchet: Ensure sections list isn't null
Issue-id: CYNGNOS-1530 Change-Id: I371effbecf6205579a8dc5854a9e6d49e46783cc
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher3/BaseRecyclerViewScrubber.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/BaseRecyclerViewScrubber.java b/src/com/android/launcher3/BaseRecyclerViewScrubber.java
index 1692548a4..4299b4457 100644
--- a/src/com/android/launcher3/BaseRecyclerViewScrubber.java
+++ b/src/com/android/launcher3/BaseRecyclerViewScrubber.java
@@ -195,7 +195,7 @@ public class BaseRecyclerViewScrubber extends LinearLayout {
mIsRtl = isRtl;
mSections = BaseRecyclerViewScrubberSection.createSections(sections, isRtl);
mSectionNames = sections;
- if (isRtl) {
+ if (isRtl && mSections != null) {
final int N = mSectionNames.length;
for(int i = 0; i < N / 2; i++) {
String temp = mSectionNames[i];