diff --git a/src/main/java/com/gmail/nossr50/util/Skills.java b/src/main/java/com/gmail/nossr50/util/Skills.java index 29b3ee3cf..a990ca48a 100644 --- a/src/main/java/com/gmail/nossr50/util/Skills.java +++ b/src/main/java/com/gmail/nossr50/util/Skills.java @@ -268,9 +268,11 @@ public class Skills { */ public static SkillType getSkillType(String skillName) { for (SkillType x : SkillType.values()) { - if (x.toString().equals(skillName.toUpperCase())) + if (x.toString().equals(skillName.toUpperCase())) { return x; + } } + return null; }