Skip to content

Commit 4b61a83

Browse files
committed
1 parent ca2bf82 commit 4b61a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flowlayoutmanager/src/main/java/com/xiaofeng/flowlayoutmanager/FlowLayoutManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public boolean canScrollVertically(final int direction) {
219219
View bottomChild = getChildAt(getMaxHeightLayoutPositionInLine(getChildCount() - 1));
220220

221221
return !(getChildAdapterPosition(lastChild) == recyclerView.getAdapter().getItemCount() - 1
222-
&& getDecoratedBottom(bottomChild) <= bottomVisibleEdge());
222+
&& (bottomChild != null && getDecoratedBottom(bottomChild) <= bottomVisibleEdge()));
223223
}
224224
}
225225

0 commit comments

Comments
 (0)