mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Added checking if file for deck importer exists.
This commit is contained in:
parent
c8c1680084
commit
1f34e69c85
1 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ public abstract class DeckImporter {
|
|||
public DeckCardLists importDeck(String file) {
|
||||
File f = new File(file);
|
||||
DeckCardLists deckList = new DeckCardLists();
|
||||
if (!f.exists()) {
|
||||
logger.warn("Deckfile " + file + " not found.");
|
||||
return deckList;
|
||||
}
|
||||
lineCount = 0;
|
||||
sbMessage.setLength(0);
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue