From 92c4ddce87626c9383de110466f2eeec06c5903c Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 27 Apr 2020 19:09:37 -0700 Subject: [PATCH] NPE fix --- .../gmail/nossr50/util/experience/ExperienceBarManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/experience/ExperienceBarManager.java b/src/main/java/com/gmail/nossr50/util/experience/ExperienceBarManager.java index bc7b8b649..a36799895 100644 --- a/src/main/java/com/gmail/nossr50/util/experience/ExperienceBarManager.java +++ b/src/main/java/com/gmail/nossr50/util/experience/ExperienceBarManager.java @@ -83,7 +83,8 @@ public class ExperienceBarManager { public void hideExperienceBar(PrimarySkillType primarySkillType) { - experienceBars.get(primarySkillType).hideExperienceBar(); + if(experienceBars.containsKey(primarySkillType)) + experienceBars.get(primarySkillType).hideExperienceBar(); } public void clearTask(PrimarySkillType primarySkillType)