fix crashes in deck import when 'use latest edition' is unchecked.

This commit is contained in:
Maxmtg
2014-02-12 18:23:42 +00:00
parent d9b657acf4
commit fa3a140470

View File

@@ -257,7 +257,7 @@ public final class CardDb implements ICardDatabase {
for(int i = 0 ; i < sz ; i++) {
PaperCard pc = cards.get(i);
CardEdition ed = editions.get(pc.getEdition());
if(!fromSet.accept(ed))
if(fromSet != null && !fromSet.accept(ed))
continue;
if((artIndex < 0 || pc.getArtIndex() == artIndex) && (printedBefore == null || ed.getDate().before(printedBefore))) {