mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 02:08:40 +00:00
Fix possible index out of bounds exception in ConversationAdapter.
If we're deferring to super.getItem(), then we should be guarding with super.getItemCount().
This commit is contained in:
committed by
Alex Hart
parent
d0c14895d0
commit
fadd4ac61e
@@ -377,7 +377,7 @@ public class ConversationAdapter
|
||||
pagingController.onDataNeededAroundIndex(position);
|
||||
}
|
||||
|
||||
if (position < getItemCount()) {
|
||||
if (position < super.getItemCount()) {
|
||||
return super.getItem(position);
|
||||
} else {
|
||||
Log.d(TAG, "Could not access corrected position " + position + " as it is out of bounds.");
|
||||
|
||||
Reference in New Issue
Block a user