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

Check for IndexOutOfBoundsException

parent 8511a01c
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,9 @@ public class VideoListAdapter extends RecyclerView.Adapter<VideoListAdapter.View
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
MediaWrapper media = mVideos.get(position);
MediaWrapper media = getItem(position);
if (media == null)
return;
holder.binding.setVariable(BR.scaleType, ImageView.ScaleType.FIT_CENTER);
fillView(holder, media);
......
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