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

Check emptiness before saving subtitle

parent 8c9029aa
No related branches found
No related tags found
No related merge requests found
......@@ -1300,6 +1300,8 @@ public class MediaDatabase {
*/
public synchronized void saveSubtitle(String path, String mediaName) {
if (TextUtils.isEmpty(path) || TextUtils.isEmpty(mediaName))
return;
ContentValues values = new ContentValues();
values.put(EXTERNAL_SUBTITLES_URI, path);
values.put(EXTERNAL_SUBTITLES_MEDIA_NAME, mediaName);
......
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