Commit 9fbe9a4a authored by Geoffrey Métais's avatar Geoffrey Métais

MediaWrapper: Sanity check

parent 19cb5c27
......@@ -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);
......
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