Skip to content

Commit 773955a

Browse files
authored
Merge pull request #17311 from wordpress-mobile/issue/17310-post-list-scroll-crash-in-debug-mode
Make LoadingItem assertion an optional type
2 parents 09a3984 + d0aede2 commit 773955a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WordPress/src/main/java/org/wordpress/android/ui/posts/adapters/PostListAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class PostListAdapter(
9595
}
9696
if (holder is LoadingViewHolder) {
9797
val item = getItem(position)
98-
assert(item is LoadingItem) {
98+
assert(item is LoadingItem?) {
9999
"If we are presenting LoadingViewHolder, the item has to be of type LoadingItem " +
100100
"for position: $position"
101101
}

0 commit comments

Comments
 (0)