We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca2bf82 commit 4b61a83Copy full SHA for 4b61a83
1 file changed
flowlayoutmanager/src/main/java/com/xiaofeng/flowlayoutmanager/FlowLayoutManager.java
@@ -219,7 +219,7 @@ public boolean canScrollVertically(final int direction) {
219
View bottomChild = getChildAt(getMaxHeightLayoutPositionInLine(getChildCount() - 1));
220
221
return !(getChildAdapterPosition(lastChild) == recyclerView.getAdapter().getItemCount() - 1
222
- && getDecoratedBottom(bottomChild) <= bottomVisibleEdge());
+ && (bottomChild != null && getDecoratedBottom(bottomChild) <= bottomVisibleEdge()));
223
}
224
225
0 commit comments