Fix NPE when no quests are available to load

This commit is contained in:
KrazyTheFox
2019-02-27 21:49:31 -05:00
parent 16c9cc7eac
commit 5377376585

View File

@@ -437,7 +437,7 @@ public class QuestController {
String path = ForgeConstants.DEFAULT_CHALLENGES_DIR;
//Use a variant specialized duel manager if this is a variant quest
if (FModel.getQuest() != null) {
if (FModel.getQuest() != null && FModel.getQuest().getDeckConstructionRules() != null) {
switch(FModel.getQuest().getDeckConstructionRules()){
case Default: break;
case Commander: this.duelManager = new QuestEventCommanderDuelManager(); return;