From 47e65531033b67aaeed95363dbf850c0cd2a7477 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Fri, 17 Apr 2020 07:46:31 -0400 Subject: [PATCH] Current stage of quest must exist before dispatch, fixes #1214 --- main/src/main/java/me/blackvein/quests/Quester.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/src/main/java/me/blackvein/quests/Quester.java b/main/src/main/java/me/blackvein/quests/Quester.java index b7e413411..2eceaa610 100644 --- a/main/src/main/java/me/blackvein/quests/Quester.java +++ b/main/src/main/java/me/blackvein/quests/Quester.java @@ -3721,6 +3721,9 @@ public class Quester { return; } if (q.getCurrentStage(quest).containsObjective(objectiveType)) { + if (this.getCurrentStage(quest) == null) { + return; + } if (this.getCurrentStage(quest).containsObjective(objectiveType) || !quest.getOptions().getRequireSameQuest()) { fun.apply(q);