summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pom.xml2
-rw-r--r--src/main/java/com/leonardobishop/quests/QuestCompleter.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index cb2c99fe..f6cd43e6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
<groupId>com.leonardobishop</groupId>
<artifactId>quests</artifactId>
- <version>2.9.1</version>
+ <version>2.9.2</version>
<name>Quests</name>
<properties>
diff --git a/src/main/java/com/leonardobishop/quests/QuestCompleter.java b/src/main/java/com/leonardobishop/quests/QuestCompleter.java
index 3c02b63e..b783540c 100644
--- a/src/main/java/com/leonardobishop/quests/QuestCompleter.java
+++ b/src/main/java/com/leonardobishop/quests/QuestCompleter.java
@@ -27,6 +27,7 @@ public class QuestCompleter implements Runnable {
QuestProgressFile questProgressFile = qPlayer.getQuestProgressFile();
for (QuestProgress questProgress : questProgressFile.getAllQuestProgress()) {
Quest quest = plugin.getQuestManager().getQuestById(questProgress.getQuestId());
+ if (quest == null) continue;
if (!questProgressFile.hasStartedQuest(quest)) continue;
boolean complete = true;