Added checking if file for deck importer exists.

This commit is contained in:
LevelX2 2013-06-26 22:04:04 +02:00
parent c8c1680084
commit 1f34e69c85

View file

@ -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 {