* Fixed null pointer exception for download with mythicspoiler.

This commit is contained in:
LevelX2 2015-09-21 19:21:23 +02:00
parent 822528d05c
commit 5bed5aeff7

View file

@ -133,9 +133,11 @@ public class MythicspoilerComSource implements CardImageSource {
}
Elements cardsImages = doc.select("img[src^=cards/]"); // starts with cards/
if (!aliasesStart.isEmpty()) {
for (String text : aliasesStart) {
cardsImages.addAll(doc.select("img[src^=" + text + "]"));
}
}
if (cardsImages.isEmpty()) {
break;
}