diff --git a/src/engine/objects/CharacterSkill.java b/src/engine/objects/CharacterSkill.java index 5dd0a539..80dc9150 100644 --- a/src/engine/objects/CharacterSkill.java +++ b/src/engine/objects/CharacterSkill.java @@ -1037,7 +1037,7 @@ public class CharacterSkill extends AbstractGameObject { float bonus = 0f; //TODO SKILLS RUNES - if (CharacterSkill.GetOwner(this).getBonuses() != null) { + if (CharacterSkill.GetOwner(this) != null && CharacterSkill.GetOwner(this).getBonuses() != null) { //Get bonuses from runes bonus = CharacterSkill.GetOwner(this).getBonuses().getSkillBonus(this.skillsBase.sourceType); } @@ -1079,7 +1079,7 @@ public class CharacterSkill extends AbstractGameObject { } //Get any rune bonus float bonus = 0f; - if (CharacterSkill.GetOwner(this).getBonuses() != null) { + if (CharacterSkill.GetOwner(this) != null && CharacterSkill.GetOwner(this).getBonuses() != null) { //Get bonuses from runes bonus = CharacterSkill.GetOwner(this).getBonuses().getSkillBonus(this.skillsBase.sourceType); }