Skip to content

Commit

Permalink
NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Apr 28, 2020
1 parent 2325c4e commit 92c4ddc
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -83,7 +83,8 @@ private void scheduleHideTask(PrimarySkillType primarySkillType, Plugin plugin)

public void hideExperienceBar(PrimarySkillType primarySkillType)
{
experienceBars.get(primarySkillType).hideExperienceBar();
if(experienceBars.containsKey(primarySkillType))
experienceBars.get(primarySkillType).hideExperienceBar();
}

public void clearTask(PrimarySkillType primarySkillType)
Expand Down

0 comments on commit 92c4ddc

Please sign in to comment.