mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +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,8 +133,10 @@ 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/
|
||||||
for (String text : aliasesStart) {
|
if (!aliasesStart.isEmpty()) {
|
||||||
cardsImages.addAll(doc.select("img[src^=" + text + "]"));
|
for (String text : aliasesStart) {
|
||||||
|
cardsImages.addAll(doc.select("img[src^=" + text + "]"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (cardsImages.isEmpty()) {
|
if (cardsImages.isEmpty()) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue