mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix NPE on startup if you don't have Quest achievements yet.
This commit is contained in:
@@ -155,7 +155,8 @@ public class QuestController {
|
||||
if (draftDecks == null) {
|
||||
draftDecks = new QuestDeckGroupMap(new HashMap<String, DeckGroup>());
|
||||
}
|
||||
if (this.getAchievements().getCurrentDraftIndex() == -1 || this.getAchievements().getCurrentDraft() == null) {
|
||||
final QuestAchievements achievements = this.getAchievements();
|
||||
if (achievements != null && (achievements.getCurrentDraftIndex() == -1 || achievements.getCurrentDraft() == null)) {
|
||||
draftDecks.delete(QuestEventDraft.DECK_NAME);
|
||||
}
|
||||
return draftDecks;
|
||||
|
||||
Reference in New Issue
Block a user