From 200a10efaac31a053d8a7f837347ae4cd2358691 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Thu, 31 Dec 2020 04:33:47 -0500 Subject: [PATCH] Fix error on last stage completion, by @AlessioDP --- main/src/main/java/me/blackvein/quests/Quester.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/src/main/java/me/blackvein/quests/Quester.java b/main/src/main/java/me/blackvein/quests/Quester.java index 2a3051595..401b1b37f 100644 --- a/main/src/main/java/me/blackvein/quests/Quester.java +++ b/main/src/main/java/me/blackvein/quests/Quester.java @@ -385,7 +385,9 @@ public class Quester implements Comparable { return questData.get(q); } } - addEmptiesFor(quest, currentQuests.get(quest)); + if (currentQuests.get(quest) != null) { + addEmptiesFor(quest, currentQuests.get(quest)); + } return new QuestData(this); }