summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];