From 3f40dbc0b424b416ea9323a67dd83149ce62710f Mon Sep 17 00:00:00 2001 From: "Xawotihs@gmail.com" Date: Wed, 14 Mar 2012 20:34:34 +0000 Subject: [PATCH] Removed crash occuring with linux .directory hidden files --- projects/mtg/src/MTGDeck.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGDeck.cpp b/projects/mtg/src/MTGDeck.cpp index dc3983fa9..992d99dc8 100644 --- a/projects/mtg/src/MTGDeck.cpp +++ b/projects/mtg/src/MTGDeck.cpp @@ -296,7 +296,11 @@ int MTGAllCards::processConfLine(string &s, MTGCard *card, CardPrimitive * primi break; default: - DebugTrace( endl << "MTGDECK Parsing Error: " << " [" << primitive->getName() << "]" << s << std::endl); + if(primitive) { + DebugTrace( endl << "MTGDECK Parsing Error: " << " [" << primitive->getName() << "]" << s << std::endl); + } else { + DebugTrace( endl << "MTGDECK Parsing Generic Error: " << s << std::endl); + } break; }