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

Prevent NPE in case of hash mismatch

(cherry picked from commit 0e60b570)
parent e62da6a2
No related branches found
No related tags found
No related merge requests found
......@@ -195,6 +195,8 @@ public class SubtitlesDownloader {
subLanguageID = ((HashMap<String, String>) map).get("SubLanguageID");
subDownloadLink = ((HashMap<String, String>) map).get("SubDownloadLink");
fileUrl = index.get(movieHash);
if (fileUrl == null)
return;
fileName = fileUrl.substring(fileUrl.lastIndexOf('/') + 1);
if (success.containsKey(fileName) && success.get(fileName).contains(subLanguageID)){
......
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