From 4ed1538acc2cce32494746123305b0adfd1a0b33 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 3 Sep 2018 15:44:20 +0000 Subject: [PATCH] Prevent probable L2SiegeGuardAI NPE. Contributed by Sahar. --- .../java/com/l2jmobius/gameserver/ai/L2SiegeGuardAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2SiegeGuardAI.java b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2SiegeGuardAI.java index 2141246778..82f8fd15d0 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2SiegeGuardAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2SiegeGuardAI.java @@ -519,7 +519,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable _actor.setTarget(null); setIntention(AI_INTENTION_IDLE, null, null); } - else + else if (sGuard.getSpawn() != null) { final double dx = _actor.getX() - attackTarget.getX(); final double dy = _actor.getY() - attackTarget.getY();