Commit 113c9999 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE

parent 2dbd0d01
......@@ -35,6 +35,7 @@ import android.os.Message;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
......@@ -379,7 +380,7 @@ public class SubtitlesDownloader {
index.put(hash, mediaUri.getPath());
video.put("moviehash", hash);
video.put("moviebytesize", String.valueOf(fileLength));
} else {
} else if (!TextUtils.isEmpty(tag)) {
video.put("tag", tag);
int dotPos = tag.lastIndexOf('.');
if (dotPos > -1)
......
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