From c084ccde40d9731a891ede8bd9f9f8f891aa4534 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Fri, 17 Aug 2012 18:45:08 -0300 Subject: [PATCH] Added missing null check --- src/main/java/com/gmail/nossr50/util/Skills.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/Skills.java b/src/main/java/com/gmail/nossr50/util/Skills.java index f31549a3e..d2d8a48c6 100644 --- a/src/main/java/com/gmail/nossr50/util/Skills.java +++ b/src/main/java/com/gmail/nossr50/util/Skills.java @@ -396,6 +396,9 @@ public class Skills { */ public static void abilityCheck(Player player, SkillType type) { PlayerProfile profile = Users.getProfile(player); + if (profile == null) { + return; + } ToolType tool = type.getTool(); if (!profile.getToolPreparationMode(tool)) {