[Android] Nullity check in openMedia
Geoffrey Métais
git at videolan.org
Mon Mar 9 11:10:23 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 9 10:41:34 2015 +0100| [909c33d582819c65de12e09f5dfd0846c253dfcb] | committer: Geoffrey Métais
Nullity check in openMedia
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=909c33d582819c65de12e09f5dfd0846c253dfcb
---
vlc-android/src/org/videolan/vlc/util/Util.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/util/Util.java b/vlc-android/src/org/videolan/vlc/util/Util.java
index c311ec6..794971b 100644
--- a/vlc-android/src/org/videolan/vlc/util/Util.java
+++ b/vlc-android/src/org/videolan/vlc/util/Util.java
@@ -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());
More information about the Android
mailing list