Commit 909c33d5 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Nullity check in openMedia

parent 478277e2
......@@ -198,6 +198,8 @@ public class Util {
public static void openMedia(Context context, final MediaWrapper media){
if (media == null)
return;
String mrl = Uri.decode(media.getLocation());
if (media.getType() == MediaWrapper.TYPE_VIDEO)
VideoPlayerActivity.start(context, mrl, media.getTitle());
......
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