mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
fixed NPE at downloading card images
This commit is contained in:
parent
988efec96c
commit
a5eebbbf12
1 changed files with 0 additions and 7 deletions
|
|
@ -236,13 +236,6 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
|
||||||
url.setSplitCard(card.isSplitCard());
|
url.setSplitCard(card.isSplitCard());
|
||||||
|
|
||||||
allCardsUrls.add(url);
|
allCardsUrls.add(url);
|
||||||
if (card.isDoubleFaced()) {
|
|
||||||
// add second side for downloading
|
|
||||||
// it has the same expansion set code and card number as original one
|
|
||||||
// second side = true;
|
|
||||||
url = new CardDownloadData(card.getSecondSideName(), card.getSetCode(), card.getCardNumber(), usesVariousArt(card), 0, false, card.isDoubleFaced(), true);
|
|
||||||
allCardsUrls.add(url);
|
|
||||||
}
|
|
||||||
if (card.isFlipCard()) {
|
if (card.isFlipCard()) {
|
||||||
if (card.getFlipCardName() == null || card.getFlipCardName().trim().isEmpty()) {
|
if (card.getFlipCardName() == null || card.getFlipCardName().trim().isEmpty()) {
|
||||||
throw new IllegalStateException("Flipped card can't have empty name.");
|
throw new IllegalStateException("Flipped card can't have empty name.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue