diff --git a/src/engine/devcmd/cmds/aiInfoCmd.java b/src/engine/devcmd/cmds/aiInfoCmd.java index c34dc84e..5987e0b1 100644 --- a/src/engine/devcmd/cmds/aiInfoCmd.java +++ b/src/engine/devcmd/cmds/aiInfoCmd.java @@ -102,7 +102,10 @@ public class aiInfoCmd extends AbstractDevCmd { for(Map.Entry entry : mob.playerAgroMap.entrySet()){ output += "Player ID: " + entry.getKey() + " Is Safemode: " + entry.getValue() + newline; } - output += "Current Target: " + mob.getCombatTarget().getName() + newline; + if(mob.getCombatTarget() != null) + output += "Current Target: " + mob.getCombatTarget().getName() + newline; + else + output += "Current Target: NULL" + newline; } throwbackInfo(pc, output); }