Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
2bf89d8a
Commit
2bf89d8a
authored
Jul 17, 2014
by
Jean-Baptiste Kempf
Browse files
Fix potential NullDereference in Ringtone setting
parent
5fc42219
Changes
1
Show whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
View file @
2bf89d8a
...
...
@@ -76,7 +76,7 @@ public class AudioUtil {
public
static
void
setRingtone
(
Media
song
,
Context
context
){
File
newringtone
=
LibVlcUtil
.
URItoFile
(
song
.
getLocation
());
if
(!
newringtone
.
exists
())
{
if
(
newringtone
!=
null
&&
!
newringtone
.
exists
())
{
Toast
.
makeText
(
context
.
getApplicationContext
(),
context
.
getString
(
R
.
string
.
ringtone_error
),
Toast
.
LENGTH_SHORT
).
show
();
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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