Skip to content
Snippets Groups Projects
Commit 9fbe9a4a authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

MediaWrapper: Sanity check

parent 19cb5c27
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ public class MediaWrapper extends MediaLibraryItem implements Parcelable {
}
private String manageVLCMrl(String mrl) {
if (mrl.charAt(0) == '/') {
if (!mrl.isEmpty() && mrl.charAt(0) == '/') {
mrl = "file://" + mrl;
} else if (mrl.toLowerCase().startsWith("vlc://")) {
mrl = mrl.substring(6);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment