Commit adcc2827 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

HistoryAdapter: avoid NullPointerException

parent 7cca7005
......@@ -94,6 +94,9 @@ public class HistoryAdapter extends BaseAdapter {
String holderText = "";
Media m = mLibVLC.getPrimaryMediaList().getMedia(position);
if (m == null )
return v;
Log.d(TAG, "Loading media position " + position + " - " + m.getTitle());
holder.title.setText(m.getTitle());
holderText = m.getSubtitle();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment