From 89658bb77a26fbce28782375b74b76b997d8b398 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 3 Sep 2023 20:28:17 -0500 Subject: [PATCH] null checks --- src/engine/objects/CharacterSkill.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }