diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 8f5fcf5329..ae41794adb 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -392,7 +392,8 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo } public RecyclerViewFastScroller getScrollBar() { - return getActiveRecyclerView().getScrollbar(); + AllAppsRecyclerView rv = getActiveRecyclerView(); + return rv == null ? null : rv.getScrollbar(); } public void setupHeader() {