Skip to content
Snippets Groups Projects
Commit a712747f authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix IndexOutOfBoundsException

parent c0c81214
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ public class VideoListAdapter extends RecyclerView.Adapter<VideoListAdapter.View
@Nullable
public MediaWrapper getItem(int position) {
if (position < 0 || position > mVideos.size())
if (position < 0 || position >= mVideos.size())
return null;
else
return mVideos.get(position);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment