From a9bed845ad36922e729a64da388a4eb9756ccdc6 Mon Sep 17 00:00:00 2001 From: PikaMug Date: Sat, 13 Jul 2019 00:20:14 -0400 Subject: [PATCH] Check for null quest --- 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 943dfd84c..20e621ed6 100644 --- a/main/src/main/java/me/blackvein/quests/Quester.java +++ b/main/src/main/java/me/blackvein/quests/Quester.java @@ -3127,6 +3127,9 @@ public class Quester { * @return true if available */ public boolean canAcceptOffer(Quest quest, boolean giveReason) { + if (quest == null) { + return false; + } if (getCurrentQuests().size() >= plugin.getSettings().getMaxQuests() && plugin.getSettings().getMaxQuests() > 0) { if (giveReason) { String msg = Lang.get(getPlayer(), "questMaxAllowed");