We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf5284c commit 872ac52Copy full SHA for 872ac52
library/src/main/java/com/lb/recyclerview_fast_scroller/RecyclerViewFastScroller.java
@@ -130,7 +130,8 @@ public boolean onPreDraw() {
130
@Override
131
protected void onDetachedFromWindow() {
132
super.onDetachedFromWindow();
133
- recyclerView.removeOnScrollListener(onScrollListener);
+ if (recyclerView != null)
134
+ recyclerView.removeOnScrollListener(onScrollListener);
135
}
136
137
private void setRecyclerViewPosition(float y) {
0 commit comments