mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
* Fixed null pointer exception for download with mythicspoiler.
This commit is contained in:
parent
822528d05c
commit
5bed5aeff7
1 changed files with 4 additions and 2 deletions
|
@ -133,9 +133,11 @@ public class MythicspoilerComSource implements CardImageSource {
|
||||||
}
|
}
|
||||||
|
|
||||||
Elements cardsImages = doc.select("img[src^=cards/]"); // starts with cards/
|
Elements cardsImages = doc.select("img[src^=cards/]"); // starts with cards/
|
||||||
|
if (!aliasesStart.isEmpty()) {
|
||||||
for (String text : aliasesStart) {
|
for (String text : aliasesStart) {
|
||||||
cardsImages.addAll(doc.select("img[src^=" + text + "]"));
|
cardsImages.addAll(doc.select("img[src^=" + text + "]"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (cardsImages.isEmpty()) {
|
if (cardsImages.isEmpty()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue