Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
909c33d5
Commit
909c33d5
authored
Mar 09, 2015
by
Geoffrey Métais
Browse files
Nullity check in openMedia
parent
478277e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/util/Util.java
View file @
909c33d5
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment